⌨️systemd
Also known as systemctl, systemd Service, Unit File
The program that starts and checks on each service on Linux.
Think of it like
Think of it like a stage manager. It starts each act on time and restarts any that trips.
Example
Lucy changes her web server's settings. She runs sudo systemctl restart nginx, then checks it is active.
Why it matters
Starting, stopping and checking any service on a server goes through it.
Definition
Example code
console
$ sudo systemctl restart nginx
$ systemctl is-active nginx
activeCommon mistake
Key takeaways
- 1First at boot. It starts everything else.
- 2systemctl. The command to control it.
- 3Enable to keep. Enable means start at boot.