How to reboot from start scripts?
Josef Wolf
jw at raven.inka.de
Wed Sep 12 19:55:03 UTC 2007
On Wed, Sep 12, 2007 at 03:06:02PM -0300, Derek Broughton wrote:
> > On Wednesday 12 September 2007 15:48:13 Josef Wolf wrote:
> ...
> >> For example, when fsck for some filesystems fails at startup, you
> >> are thrown into a shell to fix the problem. From that shell, you
> >> have no chance to make a proper reboot. I have tried:
> >>
> >> - shutdown -r now
> >> - init 6
> >> - reboot
> >> - halt
> ...
> > Not sure if it makes any difference in this instance but I now the reboot
> > needs admin privilages so you usually see sudo reboot rather than reboot
> > on its own
>
> He's in the "root" shell (ie, single user mode), so he doesn't have
> to sudo anything.
Thanks for the clarification, Derek!
> I'm reasonably certain this used to work with the sysv-init, so I suspect
> this is an unintended result of the conversion to upstart.
I'm not really sure about this. AFAIK, upstart is ubuntu invention.
I believe (but I must admit that I am not really sure) that I've seen
the same problem with debian. AFAIK, debian don't use upstart (yet).
One more point: I remember long ago (debian 1.x or something), I was
never sure what to do when fsck failed on startup. That was because
whatever I did, the result was never what I expected. At those times
I thought it was me (as a newbie) who did something wrong. But now
I am pretty sure I have tried every reasonable command, and IMHO _every_
of the tried command _should_ have rebooted the system. But _none_ of
them really did the trick. So I strongly believe that there's something
broken.
More information about the ubuntu-users
mailing list