Show Menu
Cheatography

WWWFO - SYSTEMCTL Cheat Sheet (DRAFT) by

This field is required.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Boot Behavior

sudo systemctl enable name.s­ervice
'name.s­er­vice' will start on boot
sudo systemctl enable --now name.s­ervice
'name.s­er­vice' will start on boot, as well as now
sudo systemctl disable name.s­ervice
'name.s­er­vice' will no longer start on boot
sudo systemctl mask name.s­ervice
'name.s­er­vice' will no longer run AT ALL
sudo systemctl unmask name.s­ervice
allows 'name.s­er­vice' to run again

Process Inspection

systemctl status name.s­ervice
systemctl is-active name.s­ervice
systemctl is-enabled name.s­ervice
systemctl cat name.s­ervice
systemctl show name.s­ervice
 

Process Control

sudo systemctl start name.s­ervice
sudo systemctl stop name.s­ervice
sudo systemctl restart name.s­ervice
sudo systemctl reload name.s­ervice
sudo systemctl kill name.s­ervice

Process Survey

'systemctl list-units --type­=se­rvice'
lists running and active services
'systemctl list-units --type­=se­rvice --all'
lists running, active, and dead services
'systemctl list-u­nit­-files --type­=se­rvice --stat­e=e­nabled'
lists services that start on boot
'systemctl list-units --failed'
lists broken files

WWWFO SERVICES

ach-vi­ewe­r.s­ervice
ach-wa­tch­er.s­ervice
m2.service
postgr­esq­l.s­ervice
cron.s­ervice