diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 | ||||
-rw-r--r-- | etc/inc/system.inc | 2 | ||||
-rwxr-xr-x | etc/rc | 22 |
3 files changed, 13 insertions, 13 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index aceeb07..400f251 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -487,7 +487,7 @@ function install_package_xml($pkg) { /* set up package logging streams */ if($pkg_info['logging']) { - mwexec("/usr/sbin/clog -i -s 32768 {$g['varlog_path']}/{$pkg_info['logging']['logfilename']}"); + mwexec("/usr/sbin/fifolog_create -s 32768 {$g['varlog_path']}/{$pkg_info['logging']['logfilename']}"); chmod($g['varlog_path'] . '/' . $pkg_info['logging']['logfilename'], 0600); @fwrite($fd_log, "Adding text to file /etc/syslog.conf\n"); mwexec("killall syslogd"); diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 5c061b6..0ae3a52 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -352,7 +352,7 @@ function system_syslogd_start() { $pkgfacilities[] = $package['logging']['facilityname']; $separatelogfacilities = $separatelogfacilities + $pkgfacilities; $facilitylist = implode(',', $pkgfacilities); - mwexec("clog -i -s 10000 {$g['varlog_path']}/{$package['logging']['logfilename']}"); + mwexec("fifolog_create -s 10000 {$g['varlog_path']}/{$package['logging']['logfilename']}"); $syslogconf .= "!{$facilitylist}\n*.*\t\t\t\t\t\t%{$g['varlog_path']}/{$package['logging']['logfilename']}\n"; } } @@ -217,18 +217,18 @@ if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then touch /var/log/ntpd.log else # generate circular logfiles - clog -i -s 512144 /var/log/system.log - clog -i -s 512144 /var/log/filter.log - clog -i -s 65535 /var/log/dhcpd.log - clog -i -s 65535 /var/log/vpn.log - clog -i -s 65535 /var/log/openvpn.log - clog -i -s 65535 /var/log/portalauth.log - clog -i -s 65535 /var/log/ipsec.log - clog -i -s 65535 /var/log/relayd.log - clog -i -s 65535 /var/log/lighttpd.log - clog -i -s 65535 /var/log/ntpd.log + fifolog_create -s 512144 /var/log/system.log + fifolog_create -s 512144 /var/log/filter.log + fifolog_create -s 65535 /var/log/dhcpd.log + fifolog_create -s 65535 /var/log/vpn.log + fifolog_create -s 65535 /var/log/openvpn.log + fifolog_create -s 65535 /var/log/portalauth.log + fifolog_create -s 65535 /var/log/ipsec.log + fifolog_create -s 65535 /var/log/relayd.log + fifolog_create -s 65535 /var/log/lighttpd.log + fifolog_create -s 65535 /var/log/ntpd.log fi -# change permissions on newly created clog files. +# change permissions on newly created fifolog files. chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/vpn.log /var/log/portalauth.log /var/log/relayd.log echo -n "." |