diff options
author | Colin Smith <colin@pfsense.org> | 2005-09-13 21:33:18 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-09-13 21:33:18 +0000 |
commit | 84e86846d1614f920151a935c508352c025e43bb (patch) | |
tree | 98464abb713c54fadae26b0ecc6ff75032cba8e0 /etc | |
parent | 75c72ffb94ec445bc930a057ed334b76d40fdc05 (diff) | |
download | pfsense-84e86846d1614f920151a935c508352c025e43bb.zip pfsense-84e86846d1614f920151a935c508352c025e43bb.tar.gz |
Fix syslog.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 6c75e30..2b69e26 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -207,12 +207,12 @@ function system_syslogd_start() { foreach($config['installedpackages']['package'] as $package) { if($package['logging']) { $pkgfacilities[] = $package['logging']['facilityname']; - $syslogconf .= '!' . $package['logging']['facilityname'] . "\n*.*\t\t\t\t\t\t%{$g['varlog_path']}/" . $package['logging']['logfilename'] . "\n"; + $facilitylist = implode(',', $pkgfacilities); + mwexec("clog -i -s 10000 {$g['varlog_path']}/{$package['logging']['logfilename']}"); + $syslogconf .= "!{$package['logging']['facilityname']}\n*.*\t\t\t\t\t\t%{$g['varlog_path']}/{$package['logging']['logfilename']}\n!-{$facilitylist}\n"; } } - if(is_array($pkgfacilities)) $syslogconf .= '!-' . implode(',', $pkgfacilities) . "\n"; } - /* write syslog.conf */ $fd = fopen("{$g['varetc_path']}/syslog.conf", "w"); if (!$fd) { @@ -223,7 +223,7 @@ function system_syslogd_start() { $syslogconf .= <<<EOD !racoon *.* %{$g['varlog_path']}/ipsec.log -!-racoon +!-racoon,{$facilitylist} local0.* %{$g['varlog_path']}/filter.log local3.* %{$g['varlog_path']}/vpn.log local4.* %{$g['varlog_path']}/portalauth.log |