]> err.no Git - systemd/commit
service: stop the service if ExecStartPost ends with a failure
authorMichal Schmidt <mschmidt@redhat.com>
Sat, 3 Dec 2011 20:34:34 +0000 (21:34 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Sat, 3 Dec 2011 22:10:12 +0000 (23:10 +0100)
commit2096e009a790073a934f5cd07d17024d3b199d0b
tree8a8ed615a78ceb79b4c22cff9495203a1146bb42
parent3a11183858af30bc9b4e9dac430dd7541deec19b
service: stop the service if ExecStartPost ends with a failure

The handling of failures in ExecStartPost is inconsistent. If the
command times out, the service is stopped. But if the command exits
with a failure, the service keeps running.

It makes more sense to stop the service when ExecStartPost fails.
If this behaviour is not desired, the ExecStartPost command can be
prefixed with "-".
src/service.c