Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I wrote a start up script that goes to an infinite loop but I forgot to start the process as a separate thread (&). Because the script runs as a daemon, it also gets stuck when shutting down.

Now when the system boots/shutsdown, it gets stuck...I can't exit it using Ctrl + C.

I also can't boot to recovery mode because I changed the default timeout on the grub bootloader to 0 (it used to be 5 seconds which allowed me to select the recovery mode etc).

How do I fix this?

share|improve this question
    
Grub2 should still look for SHIFT to bring up the boot menu even if the timeout is set to 0. –  charlesbridge Jan 2 '12 at 19:33
add comment

1 Answer

up vote 0 down vote accepted

Boot from a USB stick, or a CD and fix the bootscripts. You could also try other means of killing the process, like C-\.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.