Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Your Answer


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.