initialise server parameters from commandline

overwrite defaults with commandline parameters before first use
(log level settings used as an example)
This commit is contained in:
ac-stef
2017-06-27 15:15:23 +02:00
parent d6af5be3da
commit dd295bb54a
4 changed files with 107 additions and 25 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ void exitlogging()
{
if(fp) { fclose(fp); fp = NULL; }
#ifdef AC_USE_SYSLOG
if(syslogthreshold < ACLOG_NUM) closelog();
if(enabled && syslogthreshold < ACLOG_NUM) closelog();
#endif
syslogthreshold = ACLOG_NUM;
enabled = false;