diff options
author | Roy Marples <roy@marples.name> | 2008-04-21 21:34:52 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-21 21:34:52 +0000 |
commit | dbea63b76d4c2770bc41456094a451e1186b0315 (patch) | |
tree | ddda634ec8461c0393a14909372ad1dc379e4eb0 /sh | |
parent | 6a5287dbb560a94018faaa8eaaff0fb69452c77c (diff) |
Fix logic for templates.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/runscript.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index 33804bc2..d8a592b6 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -94,7 +94,7 @@ unset _f # If we have a default command then supply a default start function if [ -n "${command}" ]; then - if ! [ "$(command -v start)" != "start" ]; then + if [ "$(command -v start)" != "start" ]; then start() { local _background= ebegin "Starting ${name:-${RC_SVCNAME}}" @@ -126,7 +126,7 @@ fi # If we have a default command, procname or pidfile then supply a default stop # function if [ -n "${command}" -o -n "${procname}" -o -n "${pidfile}" ]; then - if ! [ "$(command -v stop)" != "stop" ]; then + if [ "$(command -v stop)" != "stop" ]; then stop() { ebegin "Stopping ${name:-${RC_SVCNAME}}" start-stop-daemon --stop \ |