From owner-cvs-all Fri Mar 23 16: 1: 0 2001 Delivered-To: cvs-all@freebsd.org Received: from smtp02.teb1.iconnet.net (smtp02.teb1.iconnet.net [209.3.218.43]) by hub.freebsd.org (Postfix) with ESMTP id 97A9337B71A; Fri, 23 Mar 2001 16:00:54 -0800 (PST) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net (client-151-198-117-198.nnj.dialup.bellatlantic.net [151.198.117.198]) by smtp02.teb1.iconnet.net (8.9.1/8.9.1) with ESMTP id SAA26013; Fri, 23 Mar 2001 18:59:11 -0500 (EST) Message-ID: <3ABBE34E.3F76B476@bellatlantic.net> Date: Fri, 23 Mar 2001 18:59:10 -0500 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: Brian Somers Cc: Wilko Bulte , Ian Dowse , "Justin T. Gibbs" , Robert Watson , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/reboot reboot.c References: <200103230315.f2N3FgR04938@hak.lan.Awfulhak.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > > > Wilko Bulte wrote: > > > > > > On Fri, Mar 23, 2001 at 08:07:36AM +1100, Peter Jeremy wrote: > > > > > > Instead of moving the common functionality into a common library, > > > > why not move it into a common process. Why can't reboot(8) just > > > > ask init(8) to massacre all the processes and reboot? (Or, vice > > > > versa, init could spawn reboot(8) to do the same thing). > > > > > > Isn't that what a SysV init does? > > > > No, it calls uadmin for actual reboot/shutdown. > > Under sysv the uadmin() args are determined by the signal that's sent > to init. Actually there is an uadmin binary that does the uadmin() call. In inittab it's listed as the last process to start in states 0, 5, 6 - with appropriate arguments. > It's possible for any process (with the correct credentials) > to call uadmin - I believe reboot and halt both call uadmin() Yes. > directly. AFAIK the only thing on sysv that mucks around with > killing processes and init scripts is init itself. Yes, I believe so too. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message