Follow-up to 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.
@@ -2076,6 +2076,9 @@ void service_ready(svc_t *svc)
return;
snprintf(buf, sizeof(buf), "service/%s/ready", svc_ident(svc, NULL, 0));
+ if (svc->notify == 2)
+ cond_set_oneshot(buf); /* exception for s6 */
+ else
cond_set(buf);
if (svc_has_ready(svc))
