Don't remove the ready flag for oneshots
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
@@ -185,7 +185,8 @@ svc() {
|
|||||||
|
|
||||||
run_service_action 'cleanup'
|
run_service_action 'cleanup'
|
||||||
|
|
||||||
rm -f "$svc_pidfile" "$service_pidfile" "$service_ready_flag"
|
rm -f "$svc_pidfile" "$service_pidfile"
|
||||||
|
service_oneshot || rm -f "$service_ready_flag"
|
||||||
|
|
||||||
# Record the job exit code
|
# Record the job exit code
|
||||||
printf '%d' "$job_exit" > "$service_exit_file"
|
printf '%d' "$job_exit" > "$service_exit_file"
|
||||||
@@ -612,8 +613,8 @@ qstatus() { nullexec status; }
|
|||||||
## By default there is no ready check
|
## By default there is no ready check
|
||||||
ready() { :; }
|
ready() { :; }
|
||||||
|
|
||||||
## Reset failes
|
## Reset fails
|
||||||
reset-exit() { rm -f "$service_exit_file"; }
|
reset-exit() { rm -f "$service_exit_file" "$service_ready_flag"; }
|
||||||
|
|
||||||
# Main code
|
# Main code
|
||||||
## Empty declarations
|
## Empty declarations
|
||||||
|
|||||||
Reference in New Issue
Block a user