-
Notifications
You must be signed in to change notification settings - Fork 1
systemd
Jennings Zhang edited this page Jan 10, 2018
·
4 revisions
https://twlinux.github.io/2017-10-24-sysadmin/
Systemd is the default init solution for many modern Linux distros. It manages daemons (background services).
-
systemd-analyze blamelists the services that started at boot, in descending order of time to initialize. -
systemctl start|stop UNITactivates (starts) or deactivates (stops) a unit immediately. -
systemctl enable|disable [--now] UNITenables or disables services from starting at boot. -
systemctl status UNITshows runtime status (active (running), inactive (dead), failed) and log messages of a unit. -
systemctl kill UNITforces the service to end. -
systemctl restart UNITrestarts a unit.
journalctl queries the system logs, see man journalctl.