core: failure to spawn ExecStartPost should not run ExecStop
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 14 Aug 2017 10:15:38 +0000 (11:15 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 1 Nov 2017 15:28:50 +0000 (15:28 +0000)
commit4cd9fa8176aa8e291cc5f169fd26752850b124dd
tree7e32ce94164cf8487d97a368cab69e20e1ba3a8c
parent79aafbd122eba37df6512f2071cd2c3cf59d46ee
core: failure to spawn ExecStartPost should not run ExecStop

Failure to spawn ExecStartPost was being handled differently to e.g.
EXIT_FAILURE returned by ExecStartPost.  It looks like this was an
oversight.  Fix to match documented behaviour.

`man systemd.service`:

> Note that if any of the commands specified in ExecStartPre=, ExecStart=,
> or ExecStartPost= fail (and are not prefixed with "-", see above) or time
> out before the service is fully up, execution continues with commands
> specified in ExecStopPost=, the commands in ExecStop= are skipped.
src/core/service.c