From owner-freebsd-bugs Tue Jan 22 0:10: 7 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 BE87637B416 for ; Tue, 22 Jan 2002 00:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0M8A1M69317; Tue, 22 Jan 2002 00:10:01 -0800 (PST) (envelope-from gnats) Date: Tue, 22 Jan 2002 00:10:01 -0800 (PST) Message-Id: <200201220810.g0M8A1M69317@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J . Clark" Subject: Re: conf/34109: /etc/rc.shutdown isn't run on halt(8) Reply-To: "Crist J . Clark" 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: "Crist J . Clark" To: Peter Pentchev Cc: bug-followup@freebsd.org Subject: Re: conf/34109: /etc/rc.shutdown isn't run on halt(8) Date: Tue, 22 Jan 2002 00:01:33 -0800 On Mon, Jan 21, 2002 at 07:00:05AM -0800, Peter Pentchev wrote: > On Mon, Jan 21, 2002 at 03:42:39PM +0100, clemensF wrote: > > > Peter Pentchev: [snip] > > > 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. I think the code is all sound. However, the init(8) manpage is not clear about when /etc/rc.shutdown is run. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message