diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-10-26 12:58:59 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-10-26 12:58:59 -0500 |
commit | 667a09983ca5311824aa88c42d39a495c540fc4c (patch) | |
tree | c7c02794b8f6cbfccb256b9a97627c047fcb8ffe /src/rc | |
parent | cf429ee359356d736c818e8b35db8fca887e7332 (diff) |
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.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/supervise-daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |