aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-29 13:46:56 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-29 21:00:53 +0100
commitc8c0f10ce1923bb541bf80027739e205bcbde436 (patch)
tree5b3173e57874e5b03cf8cceb6fb34e7b98385be4 /lib
parentbe066419049587e1349ada03306d004c30c18da6 (diff)
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 <goliath@infraroot.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/include/service.h1
1 files changed, 1 insertions, 0 deletions
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 */