Date: Sat, 6 Jun 1998 17:28:12 +0200 (CEST) From: Stefan Eggers <seggers@semyam.dinoco.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: seggers@semyam.dinoco.de Subject: kern/6874: accounting prevents transition to multi user Message-ID: <199806061528.RAA04814@semyam.dinoco.de>
next in thread | raw e-mail | index | archive | help
>Number: 6874 >Category: kern >Synopsis: accounting prevents transition to multi user >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 6 08:30:01 PDT 1998 >Last-Modified: >Originator: Stefan Eggers >Organization: none >Release: FreeBSD 2.2.6-STABLE i386 >Environment: Tested on two systems: 1) FreeBSD 2.2.6-RELEASE 2) FreeBSD 2.2.6-stable as of May 29th, 1998 Both systems have / and /var on separate file systems. >Description: Both systems have problems going multi user after being in single user when accounting is enabled in /etc/rc.conf. One gets the complaint that /var is busy (/var contains the accounting file) and has to enter single user mode again. This only happens after going to single user from multi user. The single user mode entered immediately after booting is not affected by this problem as accounting is still off when mounts happen there. >How-To-Repeat: 1) Boot till multi user is reached. 2) Enable accounting with "/sbin/accton /var/account/acct". 3) Go single user with "shutdown now". 4) Try to leave single user mode. >Fix: The fix I thought of was to call accton in /etc/rc before doing the mount of the file systems. The problem with this is that accton resides in /usr/sbin and during the initial boot definitely is not available. I see two possible ways to do it. Move accton to /sbin and add a call to it for turning accounting off early in /etc/rc. The other way is leaving accton where it is and calling it if it is available for use. I definitely prefer the first solution as the latter depends on /usr/sbin being available when accounting must be turned of. This not guaranteed. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806061528.RAA04814>