From owner-freebsd-current Wed Sep 3 05:38:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA09499 for current-outgoing; Wed, 3 Sep 1997 05:38:59 -0700 (PDT) Received: from labs.usn.blaze.net.au (mail@labs.usn.blaze.net.au [203.17.53.30]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id FAA09494 for ; Wed, 3 Sep 1997 05:38:54 -0700 (PDT) Received: from labs.usn.blaze.net.au [127.0.0.1] (davidn) by labs.usn.blaze.net.au with esmtp (Exim 1.61 #1) id 0x6Ehl-0000HA-00 (Debian); Wed, 3 Sep 1997 22:38:42 +1000 X-Mailer: exmh version 2.0zeta 7/24/97 To: charnier@xp11.frmug.org cc: current@freebsd.org Subject: Re: Can not run rc.shutdown ! In-reply-to: Your message of "Thu, 21 Aug 1997 23:00:09 +0200." <199708212100.XAA05054@xp11.frmug.org> X-Face: (W@z~5kg?"+5?!2kHP)+l369.~a@oTl^8l87|/s8"EH?Uk~P#N+Ec~Z&@;'LL!;3?y Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 03 Sep 1997 23:38:41 +1100 From: David Nugent Message-Id: Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > How to run rc.shutdown? It doesn't work when running reboot nor > shutdown, it is only run when a SIGTERM is send to init (see > death()). Ctrl-Alt-Del will in effect do that (although it uses SIGINT, which reboots after halt). Alternatively, kill -INT (-TERM) 1. > When running reboot, a SIGTSTP is sent to init, then a > SIGTERM is sent to my processes including innd (argh!). Yes. IMHO shutdown(8) at least should do its stuff via SIG{INT,TERM} to init. Reboot is a special case - it's good to have some means of bypassing init and I've always equated /sbin/init with that sort of functionality. Regards, David