@@ -1002,6 +1002,8 @@ run_service_action "pre_$action" || die 13 "pre_$action failed!"
|
|||||||
# Run the main action
|
# Run the main action
|
||||||
run_service_action "$action"; res = "$?"
|
run_service_action "$action"; res = "$?"
|
||||||
|
|
||||||
|
service_exit_file is file && var service_exit_code = $(<service_exit_file)
|
||||||
|
|
||||||
case "$action" in
|
case "$action" in
|
||||||
stop)
|
stop)
|
||||||
result "$res" \
|
result "$res" \
|
||||||
@@ -1016,14 +1018,14 @@ case "$action" in
|
|||||||
0 "Started $service_name" \
|
0 "Started $service_name" \
|
||||||
3 "$service_name is already running" \
|
3 "$service_name is already running" \
|
||||||
5 "Readyness check for $service_name timed out, but the process is running" \
|
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)" \
|
51 "Readyness check for $service_name timed out, and the process exited with code $service_exit_code" \
|
||||||
7 "Failed to start dependencies for $service_name: ${failed_deps[@]}" \
|
7 "Failed to start dependencies for $service_name: ${failed_deps[@]}" \
|
||||||
9 "service_command does not exist: ${service_command[0]}" \
|
9 "service_command does not exist: ${service_command[0]}" \
|
||||||
13 "Failed to create temporary files for $service_name" \
|
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" \
|
15 "Refusing to start $service_name: the service cgroup is not empty and \$service_cgroup_exclusive is set" \
|
||||||
17 "$service_name failed" \
|
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)"
|
21 "$service_name exited immediately with code $service_exit_code"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
reload)
|
reload)
|
||||||
|
|||||||
Reference in New Issue
Block a user