From the course: CompTIA Linux+ (XK0-005) Cert Prep

Unlock the full course today

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

Manage systemd services

Manage systemd services

- [Instructor] One of the core purposes of systemd is to manage services. To administer systemd's 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 unmask services. Enabling and disabling control whether the service starts automatically at boot. Masking keeps a 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've 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 subcommand. Type in: systemctl status atd and hit Enter. We can see that it is currently running. Now let's shut down the atd…

Contents