Add individual timeout support for pre/post/ready scripts

Syntax:
    [pre|post|ready]:[0-3600,]/path/to/script

Description:
    Before this patch all pre/post/ready scripts used the global kill
    delay as timeout.  After this patch it is possible to disable the
    timeout as well as set a timeout >60, which is max kill delay.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2025-02-10 10:43:37 +01:00
1 parent 7a75e34808
commit 8560103a24
3 files changed
+78 -32

No files matched your search

+3
View File
@@ -197,8 +197,11 @@ typedef struct svc {
char desc[MAX_STR_LEN];
char env[MAX_CMD_LEN];
char pre_script[MAX_CMD_LEN];
int pre_tmo;
char post_script[MAX_CMD_LEN];
int post_tmo;
char ready_script[MAX_CMD_LEN];
int ready_tmo;
/*
* Used to forcefully kill services that won't shutdown on