From 667a09983ca5311824aa88c42d39a495c540fc4c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 26 Oct 2017 12:58:59 -0500 Subject: supervise-daemon: remove child_pid from saved options during shutdown This allows us to detect when the supervisor dies unexpectedly because in that case child_pid will still exist. --- src/rc/supervise-daemon.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rc') diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index 998a01bc..b232e215 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -523,6 +523,7 @@ static void supervisor(char *exec, char **argv) rc_service_daemon_set(svcname, exec, (const char *const *)argv, pidfile, false); rc_service_mark(svcname, RC_SERVICE_STOPPED); + rc_service_value_set(svcname, "child_pid", NULL); } exit(EXIT_SUCCESS); } -- cgit v1.2.3