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:
Then, follow these steps:
- Arrow down to “System Services” and press Enter
- 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.
- When you are finished, press the Tab key to go down to the “OK” option.
- Press Enter
- Tab down to “Quit” and press Enter
Webmin has a module for services configuration. To use it, login to Webmin and do the following:
- In the System section, click “Bootup and Shutdown”
- Check the box next to the service you want to modify
- 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.