Systemctl
Last edited
Systemctl
Systemctl is the cli to interface with systemd.
Commands
Bash
# General
sudo systemctl daemon-reload # Systemd will recreate the dencancy tree and add/update services
systemd-cgls # tree group by unit (need to looking to cgroups)
# Units
sudo systemctl start custom.service # Run the service
sudo systemctl status custom.service # Check the status of the service
sudo systemctl edit kubeview.service # edit overrides (avoid changing the pure service)
sudo systemctl edit --full kubeview.service # edit the service directly
sudo systemctl list-units --type=service --state=running # list all runninng
# Timers
systemctl list-timersJournalctl
Journald and journalctl are covered in Logging.