Added pid-file command line option, that overrides the configured pid-file.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-11-05 20:03:23 +01:00
parent 7340567c13
commit 3dc2637c6f
2 changed files with 11 additions and 0 deletions

View File

@@ -467,6 +467,9 @@ int cmd_parser (int argc, char **argv, struct cfg_st* config)
if (HAVE_OPT(FOREGROUND))
config->foreground = 1;
if (HAVE_OPT(PID_FILE))
pid_file = OPT_ARG(PID_FILE);
if (HAVE_OPT(TLS_DEBUG))
config->tls_debug = 1;

View File

@@ -54,6 +54,14 @@ flag = {
doc = "";
};
flag = {
name = pid-file;
value = p;
arg-type = file;
descrip = "Specify pid file for the server";
doc = "";
};
help-value = h;