From owner-freebsd-bugs Mon Jan 21 3: 0:17 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 A2A5537B404 for ; Mon, 21 Jan 2002 03:00:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0LB09W37184; Mon, 21 Jan 2002 03:00:09 -0800 (PST) (envelope-from gnats) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id 4A91F37B404 for ; Mon, 21 Jan 2002 02:51:53 -0800 (PST) Received: from fwd04.sul.t-online.de by mailout05.sul.t-online.com with smtp id 16Sbgh-0000pQ-03; Mon, 21 Jan 2002 11:28:27 +0100 Received: from spotteswoode.dnsalias.org (520082050842-0001@[217.5.89.248]) by fmrl04.sul.t-online.com with esmtp id 16Sbgc-0fbKkaC; Mon, 21 Jan 2002 11:28:22 +0100 Received: (qmail 1289 invoked by uid 0); 21 Jan 2002 10:28:21 -0000 Message-Id: <20020121102821.GA574@spotteswoode.dnsalias.org> Date: 21 Jan 2002 11:28:21 +0100 From: "clemensF" To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/34109: /etc/rc.shutdown isn't run on halt(8) 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 Note: There was a bad value `<[' for the field `>Priority:'. It was set to the default value of `medium'. >Number: 34109 >Category: conf >Synopsis: /etc/rc.shutdown isn't run on halt(8) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 21 03:00:09 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tip Chap >Release: FreeBSD 4.3-RELEASE i386 >Organization: private >Environment: System: FreeBSD spotteswoode.dnsalias.org 4.3-RELEASE FreeBSD 4.3-RELEASE #13: Sun Jan 13 11:53:26 CET 2002 root@spotteswoode.dnsalias.org:/usr/src/sys/compile/n1 i386 >Description: the documentation of neither init(8) not halt(8) doesn't tell that /etc/rc.shutdown is only run when the system goes single-user after "kill -TERM 1" or "init 1", i had to use the source code. the documentation (init) states: "When shutting down the machine, init will try to run the /etc/rc.shutdown script. This script can be used to cleanly terminate specific programs such as innd (the InterNetNews server)." also, a template is provided in /etc, so i put all the shutdown-stuff in there. running this script only on transition to single-user is counter- intuitive. /etc/rc.shutdown is the logical place to put shutdown-code, so it should be used on every shutdown. >How-To-Repeat: >Fix: use "sh /etc/rc.shutdown" before halting the machine, inform administrators about the flaw in the documentation. clemens fischer >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message