Lines 125-130
Link Here
|
125 |
# Template start / stop / status functions |
125 |
# Template start / stop / status functions |
126 |
start() |
126 |
start() |
127 |
{ |
127 |
{ |
|
|
128 |
# Support re-entrant services |
129 |
[ "$IN_BACKGROUND" = true ] && return 0 |
130 |
|
128 |
[ -n "$command" ] || return 0 |
131 |
[ -n "$command" ] || return 0 |
129 |
local _background= |
132 |
local _background= |
130 |
ebegin "Starting ${name:-$RC_SVCNAME}" |
133 |
ebegin "Starting ${name:-$RC_SVCNAME}" |
Lines 164-169
Link Here
|
164 |
|
167 |
|
165 |
stop() |
168 |
stop() |
166 |
{ |
169 |
{ |
|
|
170 |
# Support re-entrant services |
171 |
if [ "$IN_BACKGROUND" = true ]; then |
172 |
mark_service_inactive "$RC_SVCNAME" |
173 |
return 0 |
174 |
fi |
175 |
|
167 |
local startcommand="$(service_get_value "command")" |
176 |
local startcommand="$(service_get_value "command")" |
168 |
local startpidfile="$(service_get_value "pidfile")" |
177 |
local startpidfile="$(service_get_value "pidfile")" |
169 |
local startprocname="$(service_get_value "procname")" |
178 |
local startprocname="$(service_get_value "procname")" |