How to reboot from start scripts?

Derek Broughton news at
Wed Sep 12 18:06:02 UTC 2007

James Takac 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

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.  Which, I'm
afraid, doesn't actually get you any closer to a solution...

More information about the ubuntu-users mailing list