Track oldpid of services to fix empty pid in restart message

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-03-12 00:13:15 +01:00
1 parent 3d98ad293b
commit 8aba63a9e3
2 files changed
+3 -2

No files matched your search

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