From 505c370898fe548ea43f6744272796796b739d25 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 9 Nov 2022 14:27:38 +0100 Subject: [PATCH] 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 --- src/service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index fd36d9d8..5a6cc697 100644 --- a/src/service.c +++ b/src/service.c @@ -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);