Skip site navigation (1)Skip section navigation (2)
Date:      8 Feb 2011 02:54:51 -0000
From:      John Levine <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        amvandemore@gmail.com
Subject:   Re: shutdown computer after the halt command
Message-ID:  <20110208025451.24154.qmail@joyce.lan>
In-Reply-To: <AANLkTimXnCVBbZ1xz=jRMXGfg6Bka2vns_icg%2B06O9ZT@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>I used to believe that until I was shown I was wrong.  The easiest way to
>see you're wrong is to drop to ttyv0  then do one of each like a reboot then
>a shutdown -r now.  In the latter case, you'll notice /etc/rc.d/ and
>/usr/local/etc/rc.d/ stop scripts being processed but not so in the former.

Uh, no.  shutdown or halt signals init, and init runs /etc/rc.shutdown
which runs all the shutdown scripts.  The only extra work that
shutdown does is to blat lots of warnings onto the ttys.

Read the man pages for shutdown, halt, and init if you believe otherwise.

Regards,
John Levine, johnl@iecc.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. http://jl.ly



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