[systemd-bugs] [Bug 89587] Executing a service with RuntimeDirectory= produces an error: Failed at step RUNTIME_DIRECTORY spawning /bin/bash: File exists

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 16 06:18:44 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89587

Zbigniew Jedrzejewski-Szmek <zbyszek at in.waw.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #1 from Zbigniew Jedrzejewski-Szmek <zbyszek at in.waw.pl> ---
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150316/9feb51ad/attachment.html>


More information about the systemd-bugs mailing list