mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
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:
1 parent
f26009ec3e
commit
505c370898
1 file changed
+4
-1
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user