diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-14 18:24:31 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-14 18:24:39 -0500 |
commit | b0a077a35f85e266fdb82a245dcbda18664a8567 (patch) | |
tree | c2edf38310bd2e3a1d0ef5d9e4367780731755f4 /src/rc/supervise-daemon.c | |
parent | 6a5ca2ab368d0a85f51bb559672dba2e3ffcc6be (diff) |
add quiet switch to do_stop in src-schedules.c
This allows supervise-daemon to run this code without attempting to
print some status messages used by start-stop-daemon.
Diffstat (limited to 'src/rc/supervise-daemon.c')
-rw-r--r-- | src/rc/supervise-daemon.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index a702a25c..7b894e7b 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -440,11 +440,6 @@ int main(int argc, char **argv) applet = basename_c(argv[0]); atexit(cleanup); - signal_setup(SIGINT, handle_signal); - signal_setup(SIGQUIT, handle_signal); - signal_setup(SIGTERM, handle_signal); - openlog(applet, LOG_PID, LOG_DAEMON); - if ((tmp = getenv("SSD_NICELEVEL"))) if (sscanf(tmp, "%d", &nicelevel) != 1) eerror("%s: invalid nice level `%s' (SSD_NICELEVEL)", @@ -729,6 +724,8 @@ int main(int argc, char **argv) if (child_pid != 0) { /* this is the supervisor */ umask(numask); + openlog(applet, LOG_PID, LOG_DAEMON); + signal_setup(SIGTERM, handle_signal); fp = fopen(pidfile, "w"); if (! fp) |