aboutsummaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-03-26 00:34:00 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-03-26 00:40:28 +0200
commit160ef94e8b6aa580225555a9c38a99af2d4e27d2 (patch)
tree6a6b605265b1509de68b474774dfb7e13f203ab8 /lib/include
parent09115f9a97b820c69eb29d3621a4e65dac3dbfc5 (diff)
Add service respawn limit
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/service.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/include/service.h b/lib/include/service.h
index 28d73f1..76d48ce 100644
--- a/lib/include/service.h
+++ b/lib/include/service.h
@@ -53,6 +53,8 @@ typedef struct service_t {
size_t num_exec; /* number of command lines */
char *ctty; /* controlling tty or log file */
+ int rspwn_limit; /* maximum respawn count */
+
char **before; /* services that must be executed later */
size_t num_before;
char **after; /* services that must be executed first */