aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-21 21:34:52 +0000
committerRoy Marples <roy@marples.name>2008-04-21 21:34:52 +0000
commitdbea63b76d4c2770bc41456094a451e1186b0315 (patch)
treeddda634ec8461c0393a14909372ad1dc379e4eb0
parent6a5287dbb560a94018faaa8eaaff0fb69452c77c (diff)
Fix logic for templates.
-rw-r--r--sh/runscript.sh.in4
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 \