aboutsummaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-10-24 10:26:18 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-10-24 10:26:18 -0500
commitfdce4769f2e0f4175163ffa181c7b3b2192f7b22 (patch)
tree45de83ddd46d287a7fe96df171e8f3bd3797d7da /src/includes
parent35b1996704f6635bb29ea3604410e133209e6432 (diff)
supervise-daemon: multiple fixes
- Harden against dying by handling all signals that would terminate the program and adding --reexec support - factor the supervisor into its own function - fix test for whether we are already running
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h
index 9a55c413..e6789911 100644
--- a/src/includes/rc-misc.h
+++ b/src/includes/rc-misc.h
@@ -47,6 +47,7 @@ bool rc_conf_yesno(const char *var);
void env_filter(void);
void env_config(void);
int signal_setup(int sig, void (*handler)(int));
+int signal_setup_restart(int sig, void (*handler)(int));
int svc_lock(const char *);
int svc_unlock(const char *, int);
pid_t exec_service(const char *, const char *);