Skip site navigation (1)Skip section navigation (2)
Date:      21 Jan 2002 11:28:21 +0100
From:      "clemensF" <ino-e95abb57@spotteswoode.dnsalias.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/34109: /etc/rc.shutdown isn't run on halt(8)
Message-ID:  <20020121102821.GA574@spotteswoode.dnsalias.org>

next in thread | raw e-mail | index | archive | help
	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020121102821.GA574>