From the course: Linux: Kernels and Logging for System Administration

Unlock the full course today

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

Make systemd services persistent

Make systemd services persistent - Linux Tutorial

From the course: Linux: Kernels and Logging for System Administration

Start my 1-month free trial

Make systemd services persistent

- [Narrator] 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 space list hyphen unit hyphen files space dash at space 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 space systemctl space disable space 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 space is hyphen enabled space atd and hit enter. To re-enable atd, we'll use the systemctl command again. Type in sudo space systemctl space enable space atd and hit enter. And verify with systemctl space is hyphen enabled space atd…

Contents