Debian or Ubuntu Linux runlevel configuration tool to start service
Q. Under Red Hat or Cent OS chkconfig command provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories. How do I control (or maintain Ubuntu runlevel) startup service under Debian or Ubuntu Linux with command line tool?
A. chkconfig is Redhat and friends only command. Debian or Ubuntu Linux offers different tools or command for same task.
Task: Command line tool to manage services / Ubuntu runlevel
update-rc.d automatically updates the System V style init script links /etc/rcrunlevel.d/NNname to scripts /etc/init.d/name. These are run by init when changing runlevels and are generally used to start and stop. For example turn on ssh service type the command:
# update-rc.d ssh defaultsOR$ sudo update-rc.d ssh defaults
Task: Remove service
Again use update-rc.d command:
# update-rc.d SERVICE-NAME removeOR$ sudo update-rc.d SERVICE-NAME remove
Task: Use Text based GUI Runlevel configuration tool to add or remove services
rcconf is Debian runlevel configuration tool. Rcconf allows you to control which services are started when the system boots up or reboots. It displays a menu of all the services which could be started at boot. The ones that are configured to do so are marked and you can toggle individual services on and off. If rcconf is not installed use apt-get command:
# apt-get install rcconfOR$ sudo apt-get install rcconf Now run rcconf and just follow on screen instructions:
# rcconf
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- update-rc.d like command on Redhat Enterprise / CentOS Linux
- Linux Start and stop the cron or crond service
- Linux change the runlevel for a server without rebooting
- Linux define the runlevel and determine which runlevel my system is currently in
- How to: Disable firewall on RHEL / CemtOS / Redhat Linux
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: command_line_tool, init_script, rcconf_command, startup_service, system_v, ubuntu_linux, ubuntu_runlevel, update-rc.d_command



October 12th, 2006 at 1:07 pm
small typo should be
$ sudo apt-get install rcconf
you are missing the a
October 12th, 2006 at 4:41 pm
Nathan,
Typo is corrected. Thanks for the heads up