[systemd-devel] Argument quoting in Exec lines

Daniel Drake dsd at laptop.org
Tue Sep 4 08:12:01 PDT 2012


Hi,

Not sure whether to submit a bug report or documentation patch for this.

ExecStart=/usr/bin/foo --arg1="foo bar"

Causes foo to be run with 2 command line args:
 1. --arg1="foo
 2. bar"

Not what I was hoping for.


Whereas:

ExecStart=/usr/bin/foo "--arg1=foo bar"

does what I want, just 1 command line arg:
 1. --arg1=foo bar



Took me a while to figure that out. Is this the desired behaviour?

Thanks,
Daniel


More information about the systemd-devel mailing list