Shutdown from start scripts
Matthew Flaschen
matthew.flaschen at gatech.edu
Sun Apr 1 01:52:53 UTC 2007
Josef Wolf wrote:
> On Thu, Mar 29, 2007 at 10:15:07PM -0400, Matthew Flaschen wrote:
>
>>> Any ideas what I am missing here? How do I properly reboot from
>>> a script in /etc/rcS.d?
>> I'm not sure, but I believe this is by design, and is /not/ specific to
>> upstart.
>
> Thanks for the answer, Matthew.
>
> What would be the benefit to design it this way? There can be many
> reasons not to continue the boot if fsck fails. For example:
>
> - I might not have the time to repair the filesystem right now.
> - I might need some specific tool for the repair.
> - I might want to restore the filesystem from a backup with a live-CD
>
> In all those situations, I definitely do _not_ want the boot to continue
> when I say "shutdown -r now". This simply doesn't make sense, IMHO.
Again, not certain about this. However, I think the point may be that
the runlevel order has to remain constant. One level should lead to the
next, for security reasons. That means they can't allow a runlevel to
arbitrarily initiate shutdown, in case a higher runlevel has to run first.
Hopefully someone more qualified can explain the details.
Matthew Flaschen
More information about the ubuntu-users
mailing list