Add support for service restart counter.

This commit adds a statistics counter to the finit svc_t process struct
which is incremented every time a process is restarted by the service
monitor.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2013-05-19 18:00:31 +02:00
1 parent f277166354
commit 89675403d8
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ typedef enum {
typedef struct svc {
pid_t pid;
int reload;
unsigned int stat_restart_counter; /* Incremented for each restart by service monitor. */
char cmd[MAX_ARG_LEN];
char args[MAX_NUM_SVC_ARGS][MAX_ARG_LEN];
char desc[MAX_STR_LEN];