systemctl - ronjohn4/rjc GitHub Wiki
systemctl is used to manage long running jobs. systemctl requires sudo permissions. A great article is at Digital Ocean: https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
systemctl <command> <.service file>
command | result |
---|---|
start | |
stop | |
restart | |
reload | will not interrupt current service enable |
enable | will automatically start on boot |
disable | opposite of enable |
cat | |
reboot | |
poweroff | |
list-units | unit files that systemd has listed as "active" |
list-units --all | units that systemd has loaded or attempted to load |
list-unit-files | list all of the units installed on the system |
journalctl -b -k #display system log entries
-b since last boot
-k kernel messages only
journalctl status <.service file> #display unit level status messages
-u journal entries for the unit
-b since last boot
<.service file> messages for this service only