mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
Track oldpid of services to fix empty pid in restart message
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
3d98ad293b
commit
8aba63a9e3
2 files changed
+3
-2
No files matched your search
@@ -98,7 +98,7 @@ typedef struct svc {
|
||||
/* Service details */
|
||||
int sighalt; /* Signal to stop prorcess, default: SIGTERM */
|
||||
int killdelay; /* Delay in msec before sending SIGKILL */
|
||||
pid_t pid;
|
||||
pid_t oldpid, 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