Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer

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