Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-29 19:40:35 +00:00
parent 7c38721d2e
commit 46ff54cfde
+2 -2
View File
@@ -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"