mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +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
+1
-1
@@ -756,7 +756,7 @@ static int show_status(char *arg)
|
||||
printf(" User : %s\n", svc->username);
|
||||
printf(" Group : %s\n", svc->group);
|
||||
printf(" Uptime : %s\n", svc->pid ? uptime(now - svc->start_time, uptm, sizeof(uptm)) : uptm);
|
||||
printf(" Restarts : %d/%d\n", svc->restart_cnt, svc->restart_max);
|
||||
printf(" Restarts : %d (%d/%d)\n", svc->restart_tot, svc->restart_cnt, svc->restart_max);
|
||||
printf(" Runlevels : %s\n", runlevel_string(runlevel, svc->runlevels));
|
||||
if (cgrp && svc->pid > 1) {
|
||||
char grbuf[128];
|
||||
|
||||
Reference in new issue
Block a user