From owner-freebsd-bugs Mon Jan 21 7: 1:43 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3C34237B402 for ; Mon, 21 Jan 2002 07:00:10 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0LF05u14924; Mon, 21 Jan 2002 07:00:05 -0800 (PST) (envelope-from gnats) Date: Mon, 21 Jan 2002 07:00:05 -0800 (PST) Message-Id: <200201211500.g0LF05u14924@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: conf/34109: /etc/rc.shutdown isn't run on halt(8) Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/34109; it has been noted by GNATS. From: Peter Pentchev To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: conf/34109: /etc/rc.shutdown isn't run on halt(8) Date: Mon, 21 Jan 2002 16:56:44 +0200 On Mon, Jan 21, 2002 at 03:42:39PM +0100, clemensF wrote: > > Peter Pentchev: > > > Errr.. how exactly did you try to shut your system down? > > i do not need the functionality of shutdown(8), so i choose halt(8) to do > the job. > > > The /etc/rc.shutdown script is run quite fine if you use the shutdown(8) > > i will try shutdown(8), but i'm really not sure i want it. There is no overhead in a 'shutdown -h now' or 'shutdown -r now' invocation, while there is a lot to be said about letting the system shut itself down gracefully. halt(8) and reboot(8) are there only as a last resort utilities for really urgent cases. > > Normally, the shutdown(8) utility is used when the system needs to be > > halted or restarted, giving users advance warning of their impending doom > > and cleanly terminating specific programs. > > > > Note the 'cleanly terminating specific programs' part :) > > do you suggest users do guesswork to find out if a clearly defined script > is run or not? i'd prefer "... and runs /etc/rc.shutdown to cleanly > terminate specific programs." shutdown(8) does not run /etc/rc.shutdown; init(8) does. All that shutdown(8) does is initiate a system shutdown. G'luck, Peter -- What would this sentence be like if it weren't self-referential? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message