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

1 Answer 1

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
1  
You probably should have mentioned that in your question, then. –  womble Jul 9 '12 at 13:37

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.