diff options
author | Linus Nordberg <linus@nordu.net> | 2012-04-11 17:08:42 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2012-04-11 17:08:42 +0200 |
commit | cf23603e9341e513357abbba3643c4d0c0b897a0 (patch) | |
tree | 7ba867e0e6617e3360bac522a44a9db547d8f699 /radsecproxy.c | |
parent | 3a4d6a85fb9ca74775b87080fc44c393836007de (diff) |
Add config option PidFile.
Note that `-i' on the command line overrides this config option.
This closes RADSECPROXY-32.
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 845c208..9a4d2bc 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3082,6 +3082,7 @@ void getmainconfig(const char *configfile) { "ListenDTLS", CONF_MSTR, &listenargs[RAD_DTLS], "SourceDTLS", CONF_STR, &sourcearg[RAD_DTLS], #endif + "PidFile", CONF_STR, &options.pidfile, "TTLAttribute", CONF_STR, &options.ttlattr, "addTTL", CONF_LINT, &addttl, "LogLevel", CONF_LINT, &loglevel, @@ -3280,6 +3281,8 @@ int radsecproxy_main(int argc, char **argv) { debug_timestamp_on(); debug(DBG_INFO, "radsecproxy revision %s starting", PACKAGE_VERSION); + if (!pidfile) + pidfile = options.pidfile; if (pidfile && !createpidfile(pidfile)) debugx(1, DBG_ERR, "failed to create pidfile %s: %s", pidfile, strerror(errno)); |