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 162-167
Link Here
|
162 |
|
165 |
|
163 |
stop() |
166 |
stop() |
164 |
{ |
167 |
{ |
|
|
168 |
# Support re-entrant services |
169 |
if [ "$IN_BACKGROUND" = true ]; then |
170 |
mark_service_inactive "$RC_SVCNAME" |
171 |
return 0 |
172 |
fi |
173 |
|
165 |
local startcommand="$(service_get_value "command")" |
174 |
local startcommand="$(service_get_value "command")" |
166 |
local startpidfile="$(service_get_value "pidfile")" |
175 |
local startpidfile="$(service_get_value "pidfile")" |
167 |
local startprocname="$(service_get_value "procname")" |
176 |
local startprocname="$(service_get_value "procname")" |