From 959ca16023aae7c8432edca09966fbccd16d5a90 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 11 Feb 2012 20:47:16 +0000 Subject: Move utmpx handling out of init(8). This has the following advantages: - During boot, the BOOT_TIME record is now written right after the file systems become writable, but before users are allowed to log in. This means that they can't cause `hidden logins' by logging in right before init(8) kicks in. - The pututxline(3) function may potentially block on file locking, though this is very rare to occur. By placing it in an rc script, the user can still kill it with ^C if needed. - Most importantly: jails don't use init(8). This means that a force reboot of a system running jails will leave stale entries in the accounting database of the jails individually. --- etc/rc.d/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/rc.d/Makefile') diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index a665ba9..460de6f 100644 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -144,6 +144,7 @@ FILES= DAEMON \ tmp \ ${_ubthidhci} \ ugidfw \ + ${_utx} \ var \ virecover \ watchdogd \ @@ -177,6 +178,10 @@ _nscd= nscd _ubthidhci= ubthidhci .endif +.if ${MK_UTMPX} != "no" +_utx= utx +.endif + FILESDIR= /etc/rc.d FILESMODE= ${BINMODE} -- cgit v1.1