mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +00:00
Add total restart counter for service & sysv daemons
This patch adds a recent feature request to keep track of the total number of restarts (including crashes and initctl restart) of both service and sysv daemons. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
823bb82b8c
commit
95995a45cf
3 files changed
+8
-1
No files matched your search
@@ -137,6 +137,7 @@ typedef struct svc {
|
||||
|
||||
/* Counters */
|
||||
char once; /* run/task, (at least) once per runlevel */
|
||||
unsigned int restart_tot; /* Total restarts ever, summarized, including `initctl restart` */
|
||||
unsigned char restart_max; /* Maximum number of restarts allowed */
|
||||
int restart_tmo; /* Time required for the service to start. */
|
||||
unsigned char oncrash_action; /* Action to perform in crashed state. */
|
||||
|
||||
Reference in new issue
Block a user