@@ -266,7 +266,7 @@ svc() {
|
|||||||
anywait "$job_pid"; job_exit=127
|
anywait "$job_pid"; job_exit=127
|
||||||
else
|
else
|
||||||
printf '%s' "$job_pid" > "$service_pidfile"
|
printf '%s' "$job_pid" > "$service_pidfile"
|
||||||
wait "$job_pid"; job_exit=$?
|
wait -n "$job_pid"; job_exit=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# One service failure, two service failures...
|
# One service failure, two service failures...
|
||||||
@@ -450,7 +450,7 @@ start() {
|
|||||||
svc "${service_command[@]}" & job=$!
|
svc "${service_command[@]}" & job=$!
|
||||||
|
|
||||||
if service_oneshot; then
|
if service_oneshot; then
|
||||||
wait -n "$job"; res=$?
|
wait "$job"; res=$?
|
||||||
|
|
||||||
(( res )) && {
|
(( res )) && {
|
||||||
printf '%s' "$res" > "$service_exit_file"
|
printf '%s' "$res" > "$service_exit_file"
|
||||||
|
|||||||
Reference in New Issue
Block a user