From the course: Linux CentOS 7: Shells and Processes

Unlock the full course today

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

Make systemd services persistant

Make systemd services persistant - Linux Tutorial

From the course: Linux CentOS 7: Shells and Processes

Make systemd services persistant

- [Instructor] When a Linux system boots up, certain services are run automatically by systemd. 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 service 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 that 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 of the service by typing in systemctl status atd and hit…

Contents