summaryrefslogtreecommitdiffabout
path: root/src/genrc.h
Side-by-side diff
Diffstat (limited to 'src/genrc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/genrc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/genrc.h b/src/genrc.h
index 9842016..c6ee57b 100644
--- a/src/genrc.h
+++ b/src/genrc.h
@@ -63,6 +63,9 @@ pid_t strtopid(char const *str);
int pid_is_running(pid_t pid);
void runas(void);
+int str_to_sig(char const *);
+int str_to_int(char const *);
+
enum {
MATCH_REGEX, /* extended POSIX regexp match (default) */
@@ -109,7 +112,14 @@ void match_pcre_free(PROCSCANBUF buf);
int match_pcre(PROCSCANBUF buf, char const *arg);
+enum {
+ RESTART_ON_EXIT,
+ RESTART_ON_SIGNAL
+};
+void add_restart_condition(int type, char const *arg);
+
+
struct genrc_pid_closure {
char const *name;
int (*pid)(struct genrc_pid_closure *, PIDLIST *);

Return to:

Send suggestions and report system problems to the System administrator.