mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00:00
Support for a custom kill:DELAY, default 3 sec
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
1192506d43
commit
b66069278f
4 files changed
+33
-5
No files matched your search
@@ -75,7 +75,7 @@ typedef enum {
|
||||
#define MAX_NUM_FDS 64 /* Max number of I/O plugins */
|
||||
#define MAX_NUM_SVC_ARGS 32
|
||||
|
||||
/* Time after SIGTERM (svc->sighalt) that we SIGKILL stopping processes */
|
||||
/* Default kill delay (msec) after SIGTERM (svc->sighalt) that we SIGKILL processes */
|
||||
#define SVC_TERM_TIMEOUT 3000
|
||||
|
||||
/*
|
||||
@@ -96,7 +96,8 @@ typedef struct svc {
|
||||
|
||||
/* Service details */
|
||||
int sighalt; /* Signal to stop prorcess, default: SIGTERM */
|
||||
pid_t pid;
|
||||
int killdelay; /* Delay in msec before sending SIGKILL */
|
||||
pid_t pid;
|
||||
char pidfile[256];
|
||||
long start_time; /* Start time, as seconds since boot, from sysinfo() */
|
||||
int started; /* Set for run/task/sysv to track if started */
|
||||
|
||||
Reference in new issue
Block a user