Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 04:00:03 -0800 (PST)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/34109: /etc/rc.shutdown isn't run on halt(8)
Message-ID:  <200201211200.g0LC03N53218@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/34109; it has been noted by GNATS.

From: Peter Pentchev <roam@ringlet.net>
To: clemensF <ino-e95abb57@spotteswoode.dnsalias.org>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/34109: /etc/rc.shutdown isn't run on halt(8)
Date: Mon, 21 Jan 2002 13:53:25 +0200

 On Mon, Jan 21, 2002 at 11:28:21AM +0100, clemensF wrote:
 > >Number:         34109
 > >Category:       conf
 > >Synopsis:       /etc/rc.shutdown isn't run on halt(8)
 > >Originator:     Tip Chap
 > >Release:        FreeBSD 4.3-RELEASE 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)."
 
 Errr.. how exactly did you try to shut your system down?
 The /etc/rc.shutdown script is run quite fine if you use the shutdown(8)
 utility, which also happens to be referenced in the halt(8) manual page.
 Quoting from the halt(8) manual page:
 
   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 :)
 
 G'luck,
 Peter
 
 -- 
 This sentence no verb.

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?200201211200.g0LC03N53218>