Merge pull request #399 from nodogsplash/syslog

Write log to SYSLOG. Make debuglevel 0 silent except for LOG_ERR
This commit is contained in:
Rob White
2019-07-29 11:03:42 +01:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -11,7 +11,11 @@ USE_PROCD=1
IPT=/usr/sbin/iptables
WD_DIR=/usr/bin
OPTIONS="-f -d 1"
# Run in PROCD (-f) and log to SYSLOG (-s)
OPTIONS="-f -s"
#
CONFIG=""

View File

@@ -409,7 +409,7 @@ int main(int argc, char **argv)
parse_commandline(argc, argv);
/* Initialize the config */
debug(LOG_NOTICE, "Reading and validating configuration file %s", config->configfile);
debug(LOG_INFO, "Reading and validating configuration file %s", config->configfile);
config_read(config->configfile);
config_validate();
@@ -417,7 +417,7 @@ int main(int argc, char **argv)
client_list_init();
// Init the signals to catch chld/quit/etc
debug(LOG_NOTICE, "Initializing signal handlers");
debug(LOG_INFO, "Initializing signal handlers");
init_signals();
if (config->daemon) {