Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2011 22:19:48 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        "John R. Levine" <johnl@iecc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: shutdown computer after the halt command
Message-ID:  <AANLkTimr0Ei4NVyZ3eOr8mEHYiL9h_DJ3sjMhhWKG1o0@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1102072225540.31791@joyce.lan>
References:  <AANLkTimXnCVBbZ1xz=jRMXGfg6Bka2vns_icg+06O9ZT@mail.gmail.com> <20110208025451.24154.qmail@joyce.lan> <AANLkTimiFUV9GdXOsgw6SJ2yjg0TSq+wjv80yL7oXDyG@mail.gmail.com> <alpine.BSF.2.00.1102072225540.31791@joyce.lan>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, Feb 7, 2011 at 9:31 PM, John R. Levine <johnl@iecc.com> wrote:

> It's quite easy to see you're wrong, just follow the steps I outlined
>> above.  If you are correct, reboot(8) should print things like:
>>
>> Stopping sshd.
>>
>> to the console.
>>
>
> Sigh.  I shut down my FreeBSD 8.1 laptop all the time with halt -p, and I
> can assure you it prints all those messages.


Are you hitting the bottle hard tonight? It does no such thing.

 You can also reference init.c if you still think you're correct.
>

No thanks, I've already read the man page for init, including this
> paragraph:
>
>     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).  If this script does not termi-
>     nate within 120 seconds, init will terminate it.  The timeout can be
> con-
>     figured via the sysctl(8) variable kern.init_shutdown_timeout.
>

Exactly, reboot(8) doesn't call init, shutdown(8) does.  See reboot.c,
shutdown.c


-- 
Adam Vande More



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?AANLkTimr0Ei4NVyZ3eOr8mEHYiL9h_DJ3sjMhhWKG1o0>