summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-05 21:50:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-05 21:50:56 +0000
commit18330d38ae3f645070333a4f22156f079b257d5d (patch)
tree11712e67ac1925bf1151d460b2283c6a5217d2e4 /etc
parentf06645b18a05d30d4a4588329ac4a5500879c7c9 (diff)
downloadpfsense-18330d38ae3f645070333a4f22156f079b257d5d.zip
pfsense-18330d38ae3f645070333a4f22156f079b257d5d.tar.gz
Add OpenNTPD logging tab
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc9
-rwxr-xr-xetc/rc2
2 files changed, 10 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 31633da..2a91317 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -249,6 +249,13 @@ function system_syslogd_start() {
printf("Error: cannot open syslog.conf in system_syslogd_start().\n");
return 1;
}
+ $syslogconf .= "!-racoon,{$facilitylist}\n!openvpn\n!ntpd\n";
+ if (!isset($syslogcfg['disablelocallogging'])) {
+ $syslogconf .= <<<EOD
+*.* %{$g['varlog_path']}/ntpd.log
+
+EOD;
+ }
$syslogconf .= "!racoon\n";
if (!isset($syslogcfg['disablelocallogging'])) {
$syslogconf .= <<<EOD
@@ -262,7 +269,7 @@ EOD;
EOD;
}
- $syslogconf .= "!-racoon,{$facilitylist}\n!openvpn\n";
+ $syslogconf .= "!-racoon,{$facilitylist}\n!openvpn\nntpd\n";
if (!isset($syslogcfg['disablelocallogging'])) {
$syslogconf .= <<<EOD
*.* %{$g['varlog_path']}/openvpn.log
diff --git a/etc/rc b/etc/rc
index b08e97b..fd8c7eb 100755
--- a/etc/rc
+++ b/etc/rc
@@ -146,6 +146,7 @@ if [ ! "$PLATFORM" = "cdrom" ]; then
clog -i -s 65535 /var/log/ipsec.log
clog -i -s 65535 /var/log/slbd.log
clog -i -s 65535 /var/log/lighttpd.log
+ clog -i -s 65535 /var/log/ntpd.log
else
clog -i -s 65535 /var/log/system.log
clog -i -s 65535 /var/log/filter.log
@@ -155,6 +156,7 @@ else
clog -i -s 65535 /var/log/portalauth.log
clog -i -s 65535 /var/log/ipsec.log
clog -i -s 65535 /var/log/slbd.log
+ clog -i -s 65535 /var/log/ntpd.log
fi
# change permissions on newly created clog files.
OpenPOWER on IntegriCloud