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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 May 2021 12:51:08 +0000 (14:51 +0200)
commitf5ea4ced2e4fb61bc2940b1b82540bb87e3fa0c9
tree23144c3beefa9be3c1c298bfbab212644246f82a
parent3d896e8b03b39c5bd68ef026536acb7496ae995f
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>
(cherry picked from commit bbe19f68846bb3cd5fcf3e4f612268064df53b53)
src/core/service.c