From owner-freebsd-hackers Mon Dec 26 04:10:24 1994 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id EAA24892 for hackers-outgoing; Mon, 26 Dec 1994 04:10:24 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id MAA24886 for ; Mon, 26 Dec 1994 12:10:20 GMT Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.8/jtpda-5.0) with SMTP id NAA25955 ; Mon, 26 Dec 1994 13:10:14 +0100 Received: by blaise.ibp.fr (4.1/SMI-4.1) id AA09778; Mon, 26 Dec 94 13:10:33 +0100 From: roberto@blaise.ibp.fr (Ollivier ROBERT) Message-Id: <9412261210.AA09778@blaise.ibp.fr> Subject: Re: /etc/rc.shutdown (First shot) To: jgreco@brasil.moneng.mei.com (Joe Greco) Date: Mon, 26 Dec 1994 13:10:32 +0100 (MET) Cc: peter@bonkers.taronga.com, hackers@freebsd.org In-Reply-To: <9412260643.AA03089@brasil.moneng.mei.com> from "Joe Greco" at Dec 26, 94 00:43:23 am X-Mailer: ELM [version 2.4 PL23beta2] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1218 Sender: hackers-owner@freebsd.org Precedence: bulk > approximation that tried to bring the system down in a seconds-countable > timeframe. Now I'll get a "halt" that maybe doesn't even halt the system at > all, if the /etc/rc.shutdown wedges. Generally, if I type "halt", I want > the system to be gone. Solaris actually does this quite well, providing > "shutdown", "halt", and "uadmin 2 0" to provide a rather fine level of What I have just now is an init which will run /etc/rc.shutdown when : 1. you type ctrl-alt-del at the console, 2. you type shutdown -h some_time, 3. you type shutdown some_time to go single-user. Any other way to bring the system down (halt/reboot/fasthalt/fastboot) DOESN'T run /etc/rc.shutdown. Speak up people ! What do you want between the following ? 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). -- Ollivier ROBERT -=- FreeBSD: the daemon is FREE! -=- roberto@FreeBSD.ORG FreeBSD keltia 2.1.0-Development #0: Sun Dec 11 20:52:22 1994 roberto@keltia:/usr/src/sys/compile/KELTIA i386 ctm#223