[systemd-devel] ExecStartPost= behavior on failure

Michal Schmidt mschmidt at redhat.com
Mon Dec 5 07:39:37 PST 2011


On 11/15/2011 01:40 PM, Honza Horak wrote:
> I'm thinking of what is the desired behavior if the command
> ExecStartPost=somecommand fails.
>
> If I understand it correctly, all other ExecStartPost= commands
> execution is stopped, but the main process continues to work (and the
> service is still active). From my POV this should happen when
> ExecStartPost= starts with '-'. But when '-' is not used, the service as
> well as the main process should be ended by systemd.

I agree and I have fixed this in git.
http://cgit.freedesktop.org/systemd/commit/?id=2096e009a790073a934f5cd07d17024d3b199d0b

Thanks for pointing it out.

Michal


More information about the systemd-devel mailing list