Super User is a question and answer site for computer enthusiasts and power users. 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

Is it possible to test rc0.d scripts without actually restarting the node? I don't mean the text of the script but rather will it be called or not? I found out that the script needs to start with K to be invoked on shut down but want to test other such issues.

share|improve this question
I'm going to recommend a VM for this one. That would allow you to test start / restart / shutdown as much as you want, including the scripts. – Darth Android Aug 15 '12 at 14:24
Actually I found I can just test at a higher level i.e. 3 or 4 which works in more or less the same way. – Usman Ismail Aug 15 '12 at 15:27
up vote 0 down vote accepted

On RedHat based Linux systems, run: chkconfig --list to see each service and whether they are enabled or disabled at each run level.

For newer Ubuntu systems (and may be Debian), use: service --status-all

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.