Fix logic for templates.

This commit is contained in:
Roy Marples 2008-04-21 21:34:52 +00:00
parent 6a5287dbb5
commit dbea63b76d

View File

@ -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 \