Date: Thu, 10 Jun 1999 11:19:31 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: MIHIRA Yoshiro <sanpei@sanpei.org> Cc: rustam@eanetways.com, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/12093: /sbin/reboot does not run /etc/rc.shutdown during reboot Message-ID: <19990610111931.B27083@relay.ucb.crimea.ua> In-Reply-To: <199906100342.MAA17350@lavender.yy.cs.keio.ac.jp>; from MIHIRA Yoshiro on Thu, Jun 10, 1999 at 12:42:39PM %2B0900 References: <199906090913.CAA43156@freefall.freebsd.org> <199906100342.MAA17350@lavender.yy.cs.keio.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > See also > http://www.freebsd.org/cgi/query-pr.cgi?pr=5451 > http://www.freebsd.org/cgi/query-pr.cgi?pr=9066 > http://www.freebsd.org/cgi/query-pr.cgi?pr=10035 > Will take a look... -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age 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?19990610111931.B27083>