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 need to write a script which prompts information to the user in case of an error. Is it possible to do it using /etc/init.d scripts + update-rc.d? Is there any other way?

Thanks for your information.

share|improve this question

Sure, it's just a standard init script that reads input. Plenty of scripts do it in special circumstances. Be really careful, though; unless the problem you're prompting about would result in the system being completely unusable and unable to get to even the most minimal of recovery environments up and running, all your init script will do is cause the system to fail to boot, making recovery much harder.

share|improve this answer
I have already implemented the script, the issue here is that on startup, I'm not able to give any input, because it starts the graphical system (X11). – Josep Rodríguez López Jul 9 '12 at 13:34
You probably should have mentioned that in your question, then. – womble Jul 9 '12 at 13:37

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.