Guidelines

This site is for tech Q&A. Please keep your posts focused on the subject at hand.

Ask one question at a time. Don't conflate multiple problems into a single question.

Make sure to include all relevant information in your posts. Try to avoid linking to external sites.

Links to documentation are fine, but in addition you should also quote the relevant parts in your posts.

0 votes
353 views
353 views

On Linux systems with Systemd services can be managed (listed, enabled, disabled, ...) with the systemctl command. Older RedHat-based systems have the chkconfig command for the same purpose. Is there something similar for systems that still use System V init, like Devuan? I know I can use update-rc.d for enabling/disabling services, but I'm not aware of a convenient way of listing the status of all services short of digging through /etc/rc?.d.

in Sysadmin
edited by
by (125)
3 19 33
edit history

Please log in or register to answer this question.

1 Answer

0 votes
 

Devuan (older Debian-based systems as well) has a command sysv-rc-conf, which provides both a commandline and an ncurses-based interface for service management. Simply install the package with the same name:

apt-get install sysv-rc-conf

List services:

sysv-rc-conf --list

Enable a service in runlevels 2, 3 and 5 (replace on with off to disable):

sysv-rc-conf --level 235 myservice on

Start with interactive ncurses interface:

sysv-rc-conf
by (125)
3 19 33
edit history
...