From the course: Linux: Shells and Processes

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Manage systemd services

Manage systemd services - Linux Tutorial

From the course: Linux: Shells and Processes

Manage systemd services

- One of the core purposes of system D is to manage services. To administer system D services, use the systemctl command. With systemctl, you can manually start, stop, and restart services. These changes do not survive a reboot. For persistency, you can enable, disable, mask, and unmasked services. Enabling and disabling control whether the service starts automatically at boot. Masking keeps the service from starting either manually or automatically. These changes survive a reboot. Let's get a list of all service unit files. Type in systemctl list-unit-files -T service because we specified the service type, this will show which services are enabled, disabled, or masked. Let's pick the atd.service since it's enabled. Press Q to quit, and then get a status using the status sub command. Type in systemctl status atd and hit enter. We can see that it is currently running. Now let's shut down the atd.service. You…

Contents