Track service start time using new jiffies() function

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-31 18:29:43 +01:00
1 parent f6fa576270
commit 50f128cd1d
2 files changed
+6 -3

No files matched your search

+1
View File
@@ -90,6 +90,7 @@ typedef struct svc {
/* Service details */
pid_t pid;
long start_time; /* Start time, as seconds since boot, from sysinfo() */
const svc_state_t state; /* Paused, Reloading, Restart, Running, ... */
svc_type_t type; /* Service, run, task, inetd, ... */
int protected; /* Services like dbus-daemon & udev by Finit */