From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Make systemd services persistent

Make systemd services persistent

- [Instructor] When a Linux system boots up certain services are run automatically by system D. We can enable services so they start automatically or disable them so they don't. To see what services are enabled or disabled, type into a terminal: systemctl list-unit-files -at services and hit enter. Let's choose a service that's enabled and disable it. I'm going to choose atd.service. Press Q to quit and then type in: sudo systemctl disable atd and hit enter. Type in your password and hit enter again. We can press the up arrow key twice to bring back our list unit files line and hit enter. We can now see our atd.service is disabled. Press Q to quit. We can also use a simpler command, type in: systemctl is-enabled atd and hit enter. To re-enable atd we'll use the systemctl command again. Type in: sudo systemctl enable atd and hit enter and verify with: systemctl is-enabled atd and hit enter. We could also check the status…

Contents