From dbea63b76d4c2770bc41456094a451e1186b0315 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 21 Apr 2008 21:34:52 +0000 Subject: Fix logic for templates. --- sh/runscript.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index 33804bc..d8a592b 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 \ -- cgit v1.2.3