diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-05-09 17:56:45 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-05-11 09:44:06 -0500 |
commit | a15fa1a3b12a5372c1b3c8d5df7e489648bef913 (patch) | |
tree | 1a30f9aab44612a238a0529794c51fc34b2517de /sh/start-stop-daemon.sh | |
parent | 0198affc742297b6e203bbcecc14436682119cc7 (diff) |
Rework supervisor integration framework
The original way of doing this allowed users to change the supervisor in
conf.d/*. This changes this so that the supervisor setup can be done in
the service script itself.
Diffstat (limited to 'sh/start-stop-daemon.sh')
-rw-r--r-- | sh/start-stop-daemon.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh index aae67920..6a3e2050 100644 --- a/sh/start-stop-daemon.sh +++ b/sh/start-stop-daemon.sh @@ -1,8 +1,8 @@ -# Default start / stop / status functions +# start / stop / status functions for start-stop-daemon # Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Released under the 2-clause BSD license. -start() +ssd_start() { [ -n "$command" ] || return 0 @@ -45,7 +45,7 @@ start() return 1 } -stop() +ssd_stop() { local startcommand="$(service_get_value "command")" local startpidfile="$(service_get_value "pidfile")" @@ -65,7 +65,7 @@ stop() eend $? "Failed to stop $RC_SVCNAME" } -status() +ssd_status() { _status } |