From owner-freebsd-hackers Mon Dec 26 05:57:13 1994 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id FAA25501 for hackers-outgoing; Mon, 26 Dec 1994 05:57:13 -0800 Received: from UUCP-GW.CC.UH.EDU (root@UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id NAA25495 for ; Mon, 26 Dec 1994 13:57:08 GMT Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA06419 (5.67a/IDA-1.5); Mon, 26 Dec 1994 07:40:13 -0600 Received: by bonkers.taronga.com (smail2.5p) id AA25262; 26 Dec 94 06:58:01 CST (Mon) Received: from localhost (localhost [127.0.0.1]) by bonkers.taronga.com (8.6.8/8.6.6) with SMTP id GAA25259; Mon, 26 Dec 1994 06:58:00 -0600 Message-Id: <199412261258.GAA25259@bonkers.taronga.com> X-Authentication-Warning: bonkers.taronga.com: Host localhost didn't use HELO protocol To: roberto@blaise.ibp.fr (Ollivier ROBERT) Cc: jgreco@brasil.moneng.mei.com (Joe Greco), hackers@freebsd.org Subject: Re: /etc/rc.shutdown (First shot) In-Reply-To: Your message of "Mon, 26 Dec 94 13:10:32 +0100." <9412261210.AA09778@blaise.ibp.fr> X-Mailer: exmh version 1.4.1 7/21/94 Date: Mon, 26 Dec 1994 06:57:59 -0600 From: Peter da Silva Sender: hackers-owner@freebsd.org Precedence: bulk > 1. nothing at all -- old BSD way > 2. the half-way now (only shutdown run the script) -- what *I* have > 3. init does all the work and halt/reboot/shutdown all make init run the script ... > > I need your opinion, folks. > > present: one for 3 (Peter) and one for 1 (Joe). I'm changing my vote to 2. Joe reminded me of "uadmin 2 0": you do need a backdoor. Though I'd rather vote for "4", which is kind of a cross between 2 and 3. That is, you have a program that does what halt does. You have init call it. The normal programs just tell init to shut down and let init worry about exactly how that works. That way you don't replicate this logic throughout the system (DEC OSF/1 is REALLY bad about that). If you want that program to be "halt" as badly as Joe does, so be it. I think a little bit more luser-proofing is in order, but so long as the logic's there and documented that's fine.