mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Added pid-file command line option, that overrides the configured pid-file.
This commit is contained in:
@@ -467,6 +467,9 @@ int cmd_parser (int argc, char **argv, struct cfg_st* config)
|
|||||||
if (HAVE_OPT(FOREGROUND))
|
if (HAVE_OPT(FOREGROUND))
|
||||||
config->foreground = 1;
|
config->foreground = 1;
|
||||||
|
|
||||||
|
if (HAVE_OPT(PID_FILE))
|
||||||
|
pid_file = OPT_ARG(PID_FILE);
|
||||||
|
|
||||||
if (HAVE_OPT(TLS_DEBUG))
|
if (HAVE_OPT(TLS_DEBUG))
|
||||||
config->tls_debug = 1;
|
config->tls_debug = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,14 @@ flag = {
|
|||||||
doc = "";
|
doc = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flag = {
|
||||||
|
name = pid-file;
|
||||||
|
value = p;
|
||||||
|
arg-type = file;
|
||||||
|
descrip = "Specify pid file for the server";
|
||||||
|
doc = "";
|
||||||
|
};
|
||||||
|
|
||||||
help-value = h;
|
help-value = h;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user