summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-03-15 19:00:47 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-03-15 19:01:07 -0400
commit57ecd9b6c79b8755654fd192e4e3cc6d1ec6ade3 (patch)
tree17b32aca06ffc1bcc11cc49cf1747babb6f8b8ba /etc
parent57dc2556889679a840ca50e9a08ced740428b934 (diff)
downloadpfsense-57ecd9b6c79b8755654fd192e4e3cc6d1ec6ade3.zip
pfsense-57ecd9b6c79b8755654fd192e4e3cc6d1ec6ade3.tar.gz
Jettison clog and replace with fifolog which is included in FreeBSD 7.1
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc2
-rw-r--r--etc/inc/system.inc2
-rwxr-xr-xetc/rc22
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";
}
}
diff --git a/etc/rc b/etc/rc
index ef9250e..d064d2f 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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 "."
OpenPOWER on IntegriCloud