svn commit: r201772 - in user/ed/utmpx/etc: . periodic/monthly rc.d
Ed Schouten
ed at FreeBSD.org
Fri Jan 8 07:42:02 UTC 2010
Author: ed
Date: Fri Jan 8 07:42:01 2010
New Revision: 201772
URL: http://svn.freebsd.org/changeset/base/201772
Log:
Let /etc use the proper utmpx files.
Modified:
user/ed/utmpx/etc/newsyslog.conf
user/ed/utmpx/etc/periodic/monthly/200.accounting
user/ed/utmpx/etc/rc.d/var
Modified: user/ed/utmpx/etc/newsyslog.conf
==============================================================================
--- user/ed/utmpx/etc/newsyslog.conf Fri Jan 8 07:29:51 2010 (r201771)
+++ user/ed/utmpx/etc/newsyslog.conf Fri Jan 8 07:42:01 2010 (r201772)
@@ -33,6 +33,6 @@
/var/log/ppp.log root:network 640 3 100 * JC
/var/log/security 600 10 100 * JC
/var/log/sendmail.st 640 10 * 168 B
+/var/log/utx.log 644 3 * @01T05 B
/var/log/weekly.log 640 5 1 $W6D0 JN
-/var/log/wtmp 644 3 * @01T05 B
/var/log/xferlog 600 7 100 * JC
Modified: user/ed/utmpx/etc/periodic/monthly/200.accounting
==============================================================================
--- user/ed/utmpx/etc/periodic/monthly/200.accounting Fri Jan 8 07:29:51 2010 (r201771)
+++ user/ed/utmpx/etc/periodic/monthly/200.accounting Fri Jan 8 07:42:01 2010 (r201772)
@@ -15,7 +15,7 @@ oldmask=$(umask)
umask 066
case "$monthly_accounting_enable" in
[Yy][Ee][Ss])
- W=/var/log/wtmp
+ W=/var/log/utx.log
rc=0
remove=NO
if [ ! -f $W.0 ]
Modified: user/ed/utmpx/etc/rc.d/var
==============================================================================
--- user/ed/utmpx/etc/rc.d/var Fri Jan 8 07:29:51 2010 (r201771)
+++ user/ed/utmpx/etc/rc.d/var Fri Jan 8 07:42:01 2010 (r201772)
@@ -98,12 +98,12 @@ case "${populate_var}" in
;;
esac
-# Make sure we have /var/log/lastlog and /var/log/wtmp files
-if [ ! -f /var/log/lastlog ]; then
- cp /dev/null /var/log/lastlog
- chmod 644 /var/log/lastlog
+# Make sure we have /var/log/utx.lastlogin and /var/log/utx.log files
+if [ ! -f /var/log/utx.lastlogin ]; then
+ cp /dev/null /var/log/utx.lastlogin
+ chmod 644 /var/log/utx.lastlogin
fi
-if [ ! -f /var/log/wtmp ]; then
- cp /dev/null /var/log/wtmp
- chmod 644 /var/log/wtmp
+if [ ! -f /var/log/utx.log ]; then
+ cp /dev/null /var/log/utx.log
+ chmod 644 /var/log/utx.log
fi
More information about the svn-src-user
mailing list