summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-18 17:44:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-18 17:44:11 +0000
commit6a638a8900b0bb6a5dfe9c2103389edbcedc9a06 (patch)
treeeebd1d9965ba941683236b0792bc014705bc5451 /etc
parentf10e8e4828d892357d1ff6df3198bb9840d65e5b (diff)
downloadpfsense-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.inc6
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");
OpenPOWER on IntegriCloud