I do not like this a solution tbh
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
@@ -453,6 +453,13 @@ start() {
|
||||
printf '%s' "$res" > "$service_exit_file"
|
||||
return 17
|
||||
}
|
||||
else
|
||||
# If it's not a oneshot, then check if it exited immediately
|
||||
sleep 0.1
|
||||
|
||||
nullexec kill -0 "$job" || {
|
||||
return 21
|
||||
}
|
||||
fi
|
||||
|
||||
if timer "$service_ready_timeout" run_service_action 'ready'; then
|
||||
@@ -1008,7 +1015,8 @@ case "$action" in
|
||||
13 "Failed to create temporary files for $service_name" \
|
||||
15 "Refusing to start $service_name: the service cgroup is not empty and \$service_cgroup_exclusive is set" \
|
||||
17 "$service_name failed" \
|
||||
19 "$service_name is already enabled"
|
||||
19 "$service_name is already enabled" \
|
||||
21 "$service_name exited immediately with code $(<$service_exit_file)"
|
||||
;;
|
||||
|
||||
reload)
|
||||
|
||||
Reference in New Issue
Block a user