[systemd-bugs] [Bug 86171] New: ExecStart with whitespace in path

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 11 12:11:17 PST 2014


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

            Bug ID: 86171
           Summary: ExecStart with whitespace in path
           Product: systemd
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: mail at ollic.de
        QA Contact: systemd-bugs at lists.freedesktop.org

I have a service file with a path on ExecStart option that contains
whitespaces. 
The manpage suggests to double or single quote the command. 

I have tried every possible combination, but the only thing that works is when
you use \x20 for each whitespace.

On errors i get either "main process exited, code=exited, status=203/EXEC" or
"Executable path is not absolute, ignoring: ..."

What does not work:

ExecStart=/PATH WITH SPACES/daemon -Param1 -Param2
ExecStart="/PATH WITH SPACES/daemon" -Param1 -Param2
ExecStart="/PATH WITH SPACES/daemon -Param1 -Param2"
ExecStart="/PATH WITH SPACES/daemon" "-Param1 -Param2"
ExecStart="/PATH WITH SPACES/daemon" "-Param1" "-Param2"
ExecStart=/PATH\ WITH\ SPACES/daemon -Param1 -Param2

What does work:

ExecStart=/PATH\x20WITH\x20SPACES/daemon -Param1 -Param2

-- 
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/20141111/86afea1a/attachment.html>


More information about the systemd-bugs mailing list