diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/start-stop-daemon.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index ef4fac03..82270668 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -680,6 +680,18 @@ int main (int argc, char **argv) if (rc_is_env ("RC_QUIET", "yes") && ! verbose) quiet = true; + /* Allow start-stop-daemon --signal HUP --exec /usr/sbin/dnsmasq + * instead of forcing --stop --oknodo as well */ + if (! start && ! stop) + if (sig != SIGINT && + sig != SIGTERM && + sig != SIGQUIT && + sig != SIGKILL) + { + oknodo = true; + stop = true; + } + if (start == stop) eerrorx ("%s: need one of --start or --stop", progname); |