mirror of
https://github.com/openNDS/openNDS.git
synced 2026-04-12 03:00:08 -04:00
Merge pull request #399 from nodogsplash/syslog
Write log to SYSLOG. Make debuglevel 0 silent except for LOG_ERR
This commit is contained in:
@@ -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=""
|
||||
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user