core: allow services stuck in reloading state to exit
authorPeter Morrow <pemorrow@linux.microsoft.com>
Tue, 13 Apr 2021 16:20:42 +0000 (17:20 +0100)
committerPeter Morrow <pemorrow@linux.microsoft.com>
Thu, 22 Apr 2021 08:28:50 +0000 (09:28 +0100)
commitbbe19f68846bb3cd5fcf3e4f612268064df53b53
treec9a34f9a490badb23eced9977ee8884e36205608
parenteb34cce1787259de4cea1430fa017b6bd25bc4c1
core: allow services stuck in reloading state to exit

If a service is in reloading state but has exited do not delay
the final exit until the service reload timer expires. Instead allow
the service to exit immediately since we can't expect the service to
ever transition out of reloading state.

For example if a service sent RELOADING=1 but crashed before it could
send READY=1 then it should be restarted if the service had
Restart= configured.

Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
src/core/service.c