[Resolvconf-devel] Bug#700846: resolvconf systemd service

Cameron Norman camerontnorman at gmail.com
Wed Apr 23 15:47:42 UTC 2014


On Wed, Apr 23, 2014 at 8:26 AM, Cameron Norman
<camerontnorman at gmail.com> wrote:
> On Wed, Apr 23, 2014 at 7:06 AM, Martin Pitt <martin.pitt at ubuntu.com> wrote:
>> Hey Cameron, Thomas,
>>> RemainAfterExit=yes
>>> ExecPreStart=/bin/mkdir -p /run/resolvconf/interface; /bin/touch /run/resolvconf/postponed-update
>>
>> ExecStart* are not shell commands, so this causes some havoc: it
>> creates a dir "interface;", another dir /bin/touch (which fails), and
>> the third dir. It's better to write that as two commands.
>
> Strange, I thought you could do that. I saw it in one of the plymouth
> services, I think. I hope that is not broken.

>From systemd.service: "Multiple command lines may be concatenated in a
single directive by separating them with semicolons ***(these
semicolons must be passed as separate words)***."

Emphasis mine. So ``ExecPreStart=/bin/mkdir -p
/run/resolvconf/interface ; /bin/touch
/run/resolvconf/postponed-update`` would work just fine.



More information about the Resolvconf-devel mailing list