From owner-freebsd-hackers Fri Nov 20 04:17:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA24973 for freebsd-hackers-outgoing; Fri, 20 Nov 1998 04:17:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA24968 for ; Fri, 20 Nov 1998 04:17:34 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id NAA16326; Fri, 20 Nov 1998 13:16:57 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id NAA14119; Fri, 20 Nov 1998 13:16:57 +0100 (MET) Message-ID: <19981120131656.60633@follo.net> Date: Fri, 20 Nov 1998 13:16:56 +0100 From: Eivind Eklund To: Bill/Carolyn Pechter , hackers@FreeBSD.ORG Subject: Re: SysV Init References: <199811181753.JAA09212@hub.freebsd.org> <199811191220.HAA09760@shell.monmouth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199811191220.HAA09760@shell.monmouth.com>; from Bill/Carolyn Pechter on Thu, Nov 19, 1998 at 07:20:51AM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 19, 1998 at 07:20:51AM -0500, Bill/Carolyn Pechter wrote: > I was looking to do this as a port of the SysV init, getty and > hopefully one day package tools. If we got SVR4 or Solaris X86 > emulation we'd be set. > > My plan was two sysctl variables for current and past run state. > This would avoid the need for a utmp change. > > kern.current_runlevel > kern.prev_runlevel > > The who command would also be need modified to support who -R and > read the kern.current_runlevel variable. If you seriously believe you will get kernel changes into FreeBSD to support SysV runlevels, then I'd advise you to change your beliefs. It will not happen. Kernel changes are not necessary; what is necessary is service logging, and each state containing a list of which services it contains. When you change state, you just do a transition (killing the services you don't really have in there). The information to be able to do this is encoded in the proposal I sent -hackers - code is at http://www.freebsd.org/~eivind/newrc.tar.gz though this doesn't log. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message