How to manage services in Fedora/Redhat

redhat.png

A “service” is a program that starts automatically when you start your computer, and runs in the background. For example, the “network” service sets up your connection to the Internet and keeps it running correctly.

There are two ways to manage services in Fedora, one using the graphical tools, and one using only the command line. If you’re not in a graphical environment, use the command line method.

Using the graphical tool which can be found in the menu, under System Settings – > Server Settings – > Services:

  • Check if a service is running: Select your service in the list, the status is shown in the status section.
  • Starting a service: Select your service in the list and press Start.
  • Stopping a service: Select your service in the list and press Stop.
  • Have a service start automatically at boot: Select your service in the list, check the checkbox next to it.
  • Stop a service from starting automatically at boot: Select your service in the list, uncheck the checkbox next to it.

Using the command line (replace servicename with the name of the service you want):

You must be root for this to work.

  • Check if a service is running:

    service servicename status

  • Starting a service:

    service servicename start

  • Stopping a service:

    service servicename stop

  • Have a service start automatically at boot:
    1. Open the ntsysv program:

      ntsysv

    2. Find your service in the list and press space to enable it. Services marked with a * will start automatically at boot.
  • Stop a service from starting automatically at boot:
    1. Open the ntsysv program:

      ntsysv

    2. Find your service in the list and press space to disable it. Services marked with a * will start automatically at boot.

Related Posts

Comments are closed.