From e83a26b25600bfef1e30cedf67945cccb49c84d6 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 17 Jan 2023 07:22:59 +0100 Subject: [PATCH] Simplify readiness handling for s6 style services No need for special handling of s6 services, we now have the new service_notify_reconf() function that is called on init reload. Signed-off-by: Joachim Wiberg --- src/service.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/service.c b/src/service.c index 3e384ed6..f9024712 100644 --- a/src/service.c +++ b/src/service.c @@ -2152,10 +2152,7 @@ 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); + cond_set(buf); if (svc_has_ready(svc)) service_ready_script(svc); @@ -2345,8 +2342,6 @@ restart: svc_mark_clean(svc); } - if (svc->notify == 2 && svc->notify_watcher.fd == 0) - service_ready(svc); break; } break;