From owner-freebsd-bugs Sat Jun 19 2:10:33 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B9E614CC9 for ; Sat, 19 Jun 1999 02:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA87175; Sat, 19 Jun 1999 02:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 19 Jun 1999 02:10:03 -0700 (PDT) Message-Id: <199906190910.CAA87175@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Studded Subject: Re: bin/12093: /sbin/reboot does not run /etc/rc.shutdown during reboot Reply-To: Studded Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/12093; it has been noted by GNATS. From: Studded To: Ruslan Ermilov Cc: MIHIRA Yoshiro , rustam@eanetways.com, freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/12093: /sbin/reboot does not run /etc/rc.shutdown during reboot Date: Sat, 19 Jun 1999 02:07:10 -0700 Ruslan Ermilov wrote: > > On Thu, Jun 10, 1999 at 12:42:39PM +0900, MIHIRA Yoshiro wrote: > > ru@FreeBSD.ORG wrote: > > > > >> Synopsis: /sbin/reboot does not run /etc/rc.shutdown during reboot > > >> > > >> State-Changed-From-To: open->closed > > >> State-Changed-By: ru > > >> State-Changed-When: Wed Jun 9 01:13:34 PDT 1999 > > >> State-Changed-Why: > > >> Not a bug. > > >> init(8) executes rc.shutdown whenever it receives SIGTERM signal. > > >> reboot(8) explicitly prevents this by sending init(8) SIGTSTP signal. > > >> You can use shutdown(8) to terminate your system gracefully. > > > > But > > shutdown -h now --> not execute /etc/rc.shutdown > > > It shouldn't execute /etc/rc.shutdown: > > shutdown(8): > > -h The system is halted at the specified time when shutdown executes > halt(8). > > halt(8) is a link to reboot(8), and it acts like reboot, i.e. > explicitly send init(8) SIGTSTP signal to prevent it from running > /etc/rc.shutdown. > > There are two ways to shutdown your system gracefully: > 1) Explicitly send init(8) SIGTERM signal (kill -15 1) > 2) Run ``shutdown [time]'' without specifying -h -r -p switches. Neither of which is acceptable if you are issuing the command remotely and absolutely must have the system reboot. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message