From the course: Linux: Shells and Processes

Unlock the full course today

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

Make systemd services persistent

Make systemd services persistent - Linux Tutorial

From the course: Linux: Shells and Processes

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 which services are enabled or disabled, type into a terminal, systemctl space list dash unit dash files space dash t space service and hit enter. Let's choose a service that is enabled and disable it. We can see that the atd service is enabled to start automatically at boot, as such, I'm going to choose to disable atd. Press Q to quit, and then type in sudo space systemctl space disable space atd and hit enter. To verify, you can press your up arrow key to bring back your list unit files line and hit enter again. Now if I were to reboot, the atd service would not start automatically. We can also use a simpler command to check if a service is enabled. Press Q to quit. Type in systemctl space is dash enabled space atd and hit enter. To…

Contents