Follow-up to 912a281: let s6 services use oneshot 'ready' condition

Since the s6 readiness notification mechanism closes the notification
socket to Finit (as per s6 spec.) the 'ready' condition should then
always be asserted, even across system reconfiguration events.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-11-09 14:27:38 +01:00
1 parent f26009ec3e
commit 505c370898
1 file changed
+4 -1
+4 -1
View File
@@ -2076,7 +2076,10 @@ void service_ready(svc_t *svc)
return;
snprintf(buf, sizeof(buf), "service/%s/ready", svc_ident(svc, NULL, 0));
cond_set(buf);
if (svc->notify == 2)
cond_set_oneshot(buf); /* exception for s6 */
else
cond_set(buf);
if (svc_has_ready(svc))
service_ready_script(svc);