tips
9 tips Systemctl
One command, setting or habit at a time about Systemctl: what it does, the line to copy and a caveat or two.
systemd 8
-
Load unit file changes before you restart the service.
sudo systemctl daemon-reload -
Get a clean list of what is active on a machine right now.
systemctl list-units --type=service --state=running -
Check or restart a remote service without opening a shell there first.
systemctl -H [email protected] status nginx -
Skip the key mashing at startup when you need the firmware settings.
sudo systemctl reboot --firmware-setup -
See which unit jobs are queued or running when things seem stuck.
systemctl list-jobs -
Apply an update in a script without starting services you had stopped.
sudo systemctl try-restart nginx.service -
Suspend a busy service for a moment without stopping it.
sudo systemctl freeze indexer.service -
Enables a service for every boot and starts it right now with one command.
sudo systemctl enable --now myapp.service
Linux and shell 1
-
Lets you change a systemd service in a separate file that updates will not overwrite.
sudo systemctl edit nginx
Nothing in this filter yet.