diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-18 17:44:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-18 17:44:11 +0000 |
commit | 6a638a8900b0bb6a5dfe9c2103389edbcedc9a06 (patch) | |
tree | eebd1d9965ba941683236b0792bc014705bc5451 /etc | |
parent | f10e8e4828d892357d1ff6df3198bb9840d65e5b (diff) | |
download | pfsense-6a638a8900b0bb6a5dfe9c2103389edbcedc9a06.zip pfsense-6a638a8900b0bb6a5dfe9c2103389edbcedc9a06.tar.gz |
Backport -ss syslogd feature from HEAD. Only bind to 127.0.0.1 if we
are not remotely sending logs.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 2f736e2..9f26f03 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -481,7 +481,11 @@ EOD; fwrite($fd, $syslogconf); fclose($fd); - $retval = mwexec("/usr/sbin/syslogd -s -f {$g['varetc_path']}/syslog.conf"); + // Are we logging to a least one remote server ? + if(strpos($syslogconf, "@") != false) + $retval = mwexec("/usr/sbin/syslogd -s -f {$g['varetc_path']}/syslog.conf"); + else + $retval = mwexec("/usr/sbin/syslogd -ss -f {$g['varetc_path']}/syslog.conf"); } else { $retval = mwexec("/usr/sbin/syslogd -ss"); |