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 - Linux Tutorial
From the course: CompTIA Linux+ (XK0-005) Cert Prep
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
About Linux processes1m 32s
-
(Locked)
Monitor processes using ps5m 40s
-
(Locked)
Monitor processes in real time5m 3s
-
(Locked)
Manage processes8m 25s
-
(Locked)
Manage process jobs4m
-
(Locked)
Introduction to systemd services4m 13s
-
(Locked)
Get systemd service status5m 37s
-
(Locked)
Manage systemd services4m 46s
-
(Locked)
Make systemd services persistent1m 40s
-
(Locked)
Introduction to job scheduling2m 1s
-
(Locked)
One-time jobs using at and batch3m 55s
-
(Locked)
About cronjobs3m 5s
-
(Locked)
Systemd timers3m 44s
-
(Locked)
Analyze system processes and optimize3m 10s
-
(Locked)
Troubleshoot applications and hardware2m 35s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-