From c8c0f10ce1923bb541bf80027739e205bcbde436 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 29 Mar 2019 13:46:56 +0100 Subject: Keep original respawn limit We also want this meachanism to still work for manually started service (especially after reloading services). Signed-off-by: David Oberhollenzer --- lib/include/service.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/include/service.h b/lib/include/service.h index 4e8f0b3..3cb799a 100644 --- a/lib/include/service.h +++ b/lib/include/service.h @@ -56,6 +56,7 @@ typedef struct service_t { char *desc; /* description string */ char *ctty; /* controlling tty or log file */ int rspwn_limit; /* maximum respawn count */ + int rspwn_count; /* services respawn counter */ unsigned int flags; /* SVC_FLAG_* bit field */ /* linked list of command lines to execute */ -- cgit v1.2.3