Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #227: set svc state late when stopping services, nay be dead
A service may have unexpectedly died, and we never got the signal, so when stopping services we must set the new state after we've tried to stop the service. Otherwise the svc_set_state() function starts a background timer for the SIGKILL job, which may block a reboot. The kill() syscall tells us if the service was there or not, if not we must clean up and go to HALTED state. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- Loading branch information