Files
finit/src
Joachim Wiberg 7c2764790c Issue #343: READY state lost when service is restarted after crash
The svc_set_state() function not only handles state transitions, it also
makes sure to cancel any outstaing service timeouts.  Before the service
readiness support was added, service conditions were simply a single bit
of information, so clearing its conditions before changing states had no
impact.  With readiness we have multiple bits of information that are
set as conditions.

When restarting a crashing service we set a timeout to retry restarting,
or ensure the service is now running.  This means that the service can
signal READY before RUNNING is reasserted, but the RUNNING state can be
set also by the service state machine, so we need to ensure we do not
re-assert RUNNING if it's already set, and thereby clearing READY.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2023-01-15 06:33:55 +01:00
..
2023-01-05 09:00:51 +10:00
2022-04-19 19:35:49 +02:00
2022-04-19 19:35:49 +02:00
2022-12-17 15:19:08 +01:00
2023-01-08 09:37:19 +01:00
2023-01-08 09:37:19 +01:00
2023-01-08 09:37:19 +01:00
2022-10-16 20:12:12 +02:00
2022-11-21 20:04:32 +01:00
2023-01-09 10:51:12 +01:00
2021-04-25 22:10:42 +02:00
2021-06-25 13:08:14 +08:00
2022-04-19 19:35:49 +02:00
2022-04-19 19:35:49 +02:00
2022-04-19 19:35:49 +02:00
2022-04-19 19:35:49 +02:00
2021-06-25 13:08:14 +08:00
2022-11-23 17:54:32 +01:00
2022-04-19 19:35:49 +02:00
2022-04-19 19:35:49 +02:00
2022-04-19 19:35:49 +02:00