summaryrefslogtreecommitdiff
path: root/sh
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 /sh
parent6a5287dbb560a94018faaa8eaaff0fb69452c77c (diff)
downloadopenrc-dbea63b76d4c2770bc41456094a451e1186b0315.tar.gz
openrc-dbea63b76d4c2770bc41456094a451e1186b0315.tar.bz2
openrc-dbea63b76d4c2770bc41456094a451e1186b0315.tar.xz
Fix logic for templates.
Diffstat (limited to 'sh')
-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 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 \