<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Executing a service with RuntimeDirectory= produces an error: Failed at step RUNTIME_DIRECTORY spawning /bin/bash: File exists"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89587">bug 89587</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTABUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Executing a service with RuntimeDirectory= produces an error: Failed at step RUNTIME_DIRECTORY spawning /bin/bash: File exists"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89587#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Executing a service with RuntimeDirectory= produces an error: Failed at step RUNTIME_DIRECTORY spawning /bin/bash: File exists"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89587">bug 89587</a>
              from <span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span></b>
        <pre>The directory is copied with rsync first. Then systemd tries to create it
before executing ExecStart and fails. RuntimeDirectory applies to the main part
of the service and systemd expects to be able to create it.

Replacing it with WorkingDirectory=%t/co2mon and ExecStartPost=/bin/rm -rf
%t/co2mon (untested) might do what you want.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>