summaryrefslogtreecommitdiffabout
path: root/src/genrc.c
Side-by-side diff
Diffstat (limited to 'src/genrc.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/genrc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/genrc.c b/src/genrc.c
index 3f89d03..92b0fac 100644
--- a/src/genrc.c
+++ b/src/genrc.c
@@ -16,6 +16,7 @@ int genrc_signal_stop = SIGTERM;
int genrc_signal_reload = SIGHUP;
GENRC_PID_CLOSURE *genrc_pid_closure;
char *genrc_create_pidfile;
+int genrc_verbose;
enum {
@@ -41,9 +42,10 @@ struct option longopts[] = {
{ "sentinel", no_argument, 0, 'S' },
{ "create-pidfile", required_argument, 0, OPT_CREATE_PIDFILE },
{ "version", no_argument, 0, OPT_VERSION },
+ { "verbose", no_argument, 0, 'v' },
{ NULL }
};
-char shortopts[] = "c:hF:P:p:St:";
+char shortopts[] = "c:hF:P:p:St:v";
struct sigdefn {
char const *sig_name;
@@ -402,6 +404,9 @@ main(int argc, char **argv)
case OPT_SIGNAL_STOP:
setenv("GENRC_SIGNAL_STOP", optarg, 1);
break;
+ case 'v':
+ genrc_verbose++;
+ break;
default:
exit(1);
}
@@ -468,7 +473,7 @@ main(int argc, char **argv)
genrc_pid_closure = get_pid_closure(p);
free(p);
} else {
- genrc_pid_closure = get_pid_closure("PROC");
+ genrc_pid_closure = get_pid_closure(DEFAULT_PID_SOURCE);
}
argc -= optind;

Return to:

Send suggestions and report system problems to the System administrator.