summaryrefslogtreecommitdiffabout
path: root/src/genrc.h
authorSergey Poznyakoff <gray@gnu.org>2019-07-11 14:06:31 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-07-11 14:13:25 (GMT)
commit4f60d13820ad95d876f6daacefe4e72ffff57a5f (patch) (side-by-side diff)
tree21dc585c9dd72b09f28a8386bc91eb120fdf2b9d /src/genrc.h
parent26739b2812d68c7ba5824b944626e07172333654 (diff)
downloadgenrc-4f60d13820ad95d876f6daacefe4e72ffff57a5f.tar.gz
genrc-4f60d13820ad95d876f6daacefe4e72ffff57a5f.tar.bz2
New options to select the shell binary and to run the command directly
* .gitmodules: New module: runcap * Makefile.am: Build runcap * configure.ac: Setup runcap * src/Makefile.am: Add runcap dependencies. * src/com_start.c (spawn): New function. (com_start): Use spawn. * src/sentinel.c (start_command): Use spawn. * src/genrc.8: Document new options: --shell, --exec, --verbose. * src/genrc.c (genrc_shell): New global. (longopts): New options: --shell (-s), --exec (-e). (main): Setup shortopts from longopts. * src/genrc.h (genrc_shell): New global. (spawn): New proto. * src/runas.c: Set HOME and USER environment variables.
Diffstat (limited to 'src/genrc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/genrc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/genrc.h b/src/genrc.h
index c6ee57b..e77c840 100644
--- a/src/genrc.h
+++ b/src/genrc.h
@@ -1,5 +1,5 @@
/* This file is part of genrc
-Copyryght (C) 2018 Sergey Poznyakoff
+Copyryght (C) 2018, 2019 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.
@@ -145,6 +145,9 @@ 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 spawn(int *p);
int sentinel(void);

Return to:

Send suggestions and report system problems to the System administrator.