Support for a custom kill:DELAY, default 3 sec

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-02-26 18:49:47 +01:00
1 parent 1192506d43
commit b66069278f
4 files changed
+33 -5

No files matched your search

+3 -2
View File
@@ -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 */