aboutsummaryrefslogtreecommitdiff
path: root/src/genrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/genrc.h')
-rw-r--r--src/genrc.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/genrc.h b/src/genrc.h
index e77c840..dc71aac 100644
--- a/src/genrc.h
+++ b/src/genrc.h
@@ -1,8 +1,8 @@
/* This file is part of genrc
-Copyryght (C) 2018, 2019 Sergey Poznyakoff
+Copyryght (C) 2018-2022 Sergey Poznyakoff
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
*/
#include <config.h>
#include <stdlib.h>
@@ -144,16 +144,28 @@ extern int genrc_signal_reload;
extern int genrc_signal_stop;
extern GENRC_PID_CLOSURE *genrc_pid_closure;
extern char *genrc_create_pidfile;
extern int genrc_verbose;
extern char *genrc_shell;
+void genrc_openlog(void);
+
void spawn(int *p);
int sentinel(void);
int com_start(void);
int com_status(void);
int com_stop(void);
int com_restart(void);
int com_reload(void);
+enum genrc_kill_mode {
+ genrc_kill_group,
+ genrc_kill_process,
+ genrc_kill_mixed
+};
+
+extern enum genrc_kill_mode genrc_kill_mode;
+
+void mf_proctitle_init (int argc, char *argv[], char *env[]);
+void mf_proctitle_format (const char *fmt, ...);

Return to:

Send suggestions and report system problems to the System administrator.