a more robust ready check

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-29 13:34:28 +00:00
parent c7264a737e
commit ce582dd51f
+7 -2
View File
@@ -463,7 +463,11 @@ start() {
if timer "$service_ready_timeout" run_service_action 'ready'; then
set_ready
else
return 5
if nullexec kill -0 "$job"; then
return 5
else
return 51
fi
fi
return 0
@@ -1007,7 +1011,8 @@ case "$action" in
result "$res" \
0 "Started $service_name" \
3 "$service_name is already running" \
5 "Readyness check for $service_name timed out" \
5 "Readyness check for $service_name timed out, but the process is running" \
51 "Readyness check for $service_name timed out, and the process exited with code $(<$service_exit_file)" \
7 "Failed to start dependencies for $service_name: ${failed_deps[@]}" \
9 "service_command does not exist: ${service_command[0]}" \
13 "Failed to create temporary files for $service_name" \