1

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.

2
  • 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. Aug 15, 2012 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. Aug 15, 2012 at 15:27

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .