3 Ways to Configure Services to Start at Boot in CentOS: Part 2

In part 1 of this series, you learned how to use the command line interface (CLI) and a program called chkconfig to configure services to start at boot on a Linux dedicated server. In this part, you will learn how to use the unique Red Hat “Setup” utility and Webmin’s web-based control panel to accomplish the same task.

Red Hat / CentOS / Fedora Setup

In Red Hat-based distributions, you can use a semi-graphical ncurses utility called Setup to configure startup services. To use Setup, login to your server’s shell as you normally would (i.e. through SSH), and type this command:

# setup

Then, follow these steps:

  1. Arrow down to “System Services” and press Enter
  2. Find the service you want to enable and make sure it has a “*” next to it. If it does not, highlight it and press the Space bar.
  3. When you are finished, press the Tab key to go down to the “OK” option.
  4. Press Enter
  5. Tab down to “Quit” and press Enter

Webmin Module

Webmin has a module for services configuration. To use it, login to Webmin and do the following:

  1. In the System section, click “Bootup and Shutdown”
  2. Check the box next to the service you want to modify
  3. At the bottom, select “Start On Boot”

In Webmin, if you want to also start the service immediately, select “Start Now and On Boot”.

You now know three distinct methods for enabling or disabling services at boot. Each is completely capable and easy to use. The one you decide to use primarily depends on your preference.











Comments: