diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-05 21:50:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-05 21:50:56 +0000 |
commit | 18330d38ae3f645070333a4f22156f079b257d5d (patch) | |
tree | 11712e67ac1925bf1151d460b2283c6a5217d2e4 /etc | |
parent | f06645b18a05d30d4a4588329ac4a5500879c7c9 (diff) | |
download | pfsense-18330d38ae3f645070333a4f22156f079b257d5d.zip pfsense-18330d38ae3f645070333a4f22156f079b257d5d.tar.gz |
Add OpenNTPD logging tab
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 9 | ||||
-rwxr-xr-x | etc/rc | 2 |
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 @@ -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. |