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