mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +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))
|
||||
config->foreground = 1;
|
||||
|
||||
if (HAVE_OPT(PID_FILE))
|
||||
pid_file = OPT_ARG(PID_FILE);
|
||||
|
||||
if (HAVE_OPT(TLS_DEBUG))
|
||||
config->tls_debug = 1;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user