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 we have a default command then supply a default start function
|
||||||
if [ -n "${command}" ]; then
|
if [ -n "${command}" ]; then
|
||||||
if ! [ "$(command -v start)" != "start" ]; then
|
if [ "$(command -v start)" != "start" ]; then
|
||||||
start() {
|
start() {
|
||||||
local _background=
|
local _background=
|
||||||
ebegin "Starting ${name:-${RC_SVCNAME}}"
|
ebegin "Starting ${name:-${RC_SVCNAME}}"
|
||||||
@ -126,7 +126,7 @@ fi
|
|||||||
# If we have a default command, procname or pidfile then supply a default stop
|
# If we have a default command, procname or pidfile then supply a default stop
|
||||||
# function
|
# function
|
||||||
if [ -n "${command}" -o -n "${procname}" -o -n "${pidfile}" ]; then
|
if [ -n "${command}" -o -n "${procname}" -o -n "${pidfile}" ]; then
|
||||||
if ! [ "$(command -v stop)" != "stop" ]; then
|
if [ "$(command -v stop)" != "stop" ]; then
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping ${name:-${RC_SVCNAME}}"
|
ebegin "Stopping ${name:-${RC_SVCNAME}}"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
|
Loading…
Reference in New Issue
Block a user