| « HOWTO:Change the UID and GID on files | HOWTO: Setup Apache server on Fedora » |
When you install a new service on Fedora, such as a web server, time synchronisation, sql server it will not be configured to automatically start on a reboot. To sort this out is only a few steps away.
To configure the service and stop and start it we use two commands, chkconfig and service. Have a look at their man pages.
To see if a service is configured to automatically start-up at boot time or even configured at all
If you see a message similar to this then the service is not configured at all. Like the warning says you will need to use the--add option. (You can use the --del option to remove unwanted services)
Once the service has been added you will see output from chkconfig similar to this:
See that for all the run levels the service is marked as off. This means the service will not at as the system is booted. To turn on the defaults that the author of the system has set, or to turn off the automatic startup use the commands below:
the output from chkconfig --list should now look like
You can even set or unset individual levels to override the defaults by using the --level option
We have now configured the service to stop and start automaticially when you reboot. As this is Linux and not Windows we do keep rebooting our server just because we changed one server. We can stop and start individual services using the service command. The service command has a number of sub commands. The common ones are stop, start, restart and status· Most services will display you their usage text if you enter a duff sub command "qqq" usually works ![]()