Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.14 KB

SystemD101.md

File metadata and controls

26 lines (20 loc) · 1.14 KB

System D Overview:

Commands:
systemctl status - Prints running systemD services, and releated status information
systemctl start .service - Starts a service
systemctl stop .service - Stops a service
systemctl enable .service - Sets a service to start at boot
systemctl disable .service - Stops a service from starting at boot
systemctl restart .service - Restarts a service

systemctl is-enabled .service - Tests if a service is enabled
systemctl list-unit-files |grep enabled Lists all unit files that are enabled

User vs Root space with SystemD commands:
https://unix.stackexchange.com/questions/385964/launching-chromium-on-startup-with-systemd/519585

How to write SystemD services(Sort of)
http://tuxgraphics.org/npa/systemd-scripts/

Nuts and Bolts explanation:
https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal

Unit File Documentation:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
Tutorial https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/