Fix logic for templates.
This commit is contained in:
parent
6a5287dbb5
commit
dbea63b76d
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user