diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-18 17:44:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-18 17:44:16 +0000 |
commit | 9f5b217f4fd8c7e98bcdc573a7f532593a6a8498 (patch) | |
tree | 67d22d74a5fd004628c249e90e181ca88ba04010 | |
parent | 711ee16474f34b6966e9ea6106b48d414a1a7a4b (diff) | |
download | pfsense-9f5b217f4fd8c7e98bcdc573a7f532593a6a8498.zip pfsense-9f5b217f4fd8c7e98bcdc573a7f532593a6a8498.tar.gz |
Backport -ss syslogd feature from HEAD. Only bind to 127.0.0.1 if we
are not remotely sending logs.
-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 944a93e..66a6628 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -410,7 +410,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"); |