mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Support for custom halt:signal, default SIGTERM
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
decdc1560a
commit
1192506d43
6 files changed
+117
-7
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 that we SIGKILL stopping processes */
|
||||
/* Time after SIGTERM (svc->sighalt) that we SIGKILL stopping processes */
|
||||
#define SVC_TERM_TIMEOUT 3000
|
||||
|
||||
/*
|
||||
@@ -95,6 +95,7 @@ typedef struct svc {
|
||||
struct rlimit rlimit[RLIMIT_NLIMITS];
|
||||
|
||||
/* Service details */
|
||||
int sighalt; /* Signal to stop prorcess, default: SIGTERM */
|
||||
pid_t pid;
|
||||
char pidfile[256];
|
||||
long start_time; /* Start time, as seconds since boot, from sysinfo() */
|
||||
|
||||
Reference in new issue
Block a user