Debian: How to determine services are enabled at boot

If you are using CentOS the answer is pretty simple:

chkconfig --list | grep $(runlevel | awk '{ print $2}'):on

But how about Debian Linux? How is this done?

R=$(runlevel | awk '{ print $2}')
for s in /etc/rc${R}.d/*; do basename $s | grep '^S' | sed 's/S[0-9].//g' ;done

If you like - and I am sure most of you will - you can use rcconf, Debian Runlevel configuration tool.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.