summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-18 20:19:20 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-18 20:19:20 -0400
commitc676893ce877881251a520d6b43a3d2c29b93ea3 (patch)
treea95907ba484f8ce3d872ab0d3b92adcb0eaf6464 /etc/rc
parent77518fbf3d033cb713512c4770f9f35696a88934 (diff)
downloadpfsense-c676893ce877881251a520d6b43a3d2c29b93ea3.zip
pfsense-c676893ce877881251a520d6b43a3d2c29b93ea3.tar.gz
Echo out data to start of log files
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 0a04345..0885997 100755
--- a/etc/rc
+++ b/etc/rc
@@ -237,6 +237,18 @@ else
/usr/sbin/fifolog_create -s 50688 /var/log/relayd.log
/usr/sbin/fifolog_create -s 50688 /var/log/lighttpd.log
/usr/sbin/fifolog_create -s 50688 /var/log/ntpd.log
+ # Echo date to log files (start time)
+ /bin/date | /usr/sbin/fifolog_writer /var/log/system.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/filter.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/dhcpd.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/vpn.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/openvpn.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/portalauth.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/ipsec.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/relayd.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/lighttpd.log
+ /bin/date | /usr/sbin/fifolog_writer /var/log/ntpd.log
+
fi
# 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
OpenPOWER on IntegriCloud