View and Manage Services

Cockpit administrators can use the Services page to monitor and manage the services running on the host system. For example, the Services page includes properties for activating or deactivating services, restarting, or reloading services, or managing the automatic start-up properties at boot. The Services page also provides filters that help you find the service you want to change. The names of the services appear in an easy-to-read table format. Each row displays the service name, description, state, and automatic start-up behavior. The tabs at the top of the Services page enable you to switch the view between Services, Targets, Sockets, Timers, and Paths.

Note:

Cockpit uses systemd to manage host service processes.

What Do You Need?

Steps

Using the Cockpit web console, follow these steps to view and manage the behavior of system processes on the host system:
  1. In the Cockpit navigation pane, click Services.

    The Services page appears.

  2. In the Services page, click a systemd service type tab of interest. For example, Service, Targets, Sockets, Timer, and Path
    A list of service processes appear in a table format as follows:
    Column Displays
    1 Name of service process.
    2 Description of service process.
    3 Status of service process.
    4 Operating state of service process.
  3. In the selected service type tab page, perform any of the following operations:
    Filter page output Filter the page output by:
    • User or system processes – Click System or User (at top right side of page).
    • Process name or description – In the text box, enter a process name or process description of interest.
    • Active process state or file process state – Select the state of interest from the Active State drop-down list or File State drop-down list.
    Change the operating state Perform these steps:
    1. In the first column of the table, select a service name of interest.

      The service-name page appears.

    2. In server-process-name page, perform the applicable action(s):
      • To activate or deactivate the process, turn on or off the Account Service toggle switch.
      • To start, stop, or reload the process, click the Account Service Additional Actions [] menu.
    View system logs Perform these steps:
    1. In the first column of the table, select the service name of interest.

      The service-name page appears.

    2. In service-name page, navigate to the Service Logs panel and then click View all logs.

    Create Timer (Timer tab only)

    Perform these steps in the Timer tab:

    1. Click Create timer at the upper right top of the page.

      A Create timer dialog appears.

    2. In the Create timer dialog, configure the required properties.

      For more details about creating systemd timers, see Work with Systemd Timer Units in Use systemd on Oracle Linux.