/
SYSTEMD
Search
Notion
SYSTEMD
Print units by mask:
systemctl list-units --all --no-legend "bi*" systemctl list-timers --all "bi*"
Bash
Start/stop units by mask:
systemctl stop "bi*" systemctl start "bi*"
Bash
Print journal logging for unit:
journalctl --no-pager -n 100 -f -u example.service
Bash
Clean last 10 day journal entries:
journalctl --vacuum-time=10d
Bash
Show dependent systemd services:
systemctl list-dependencies example.service --all --reverse
Bash
Show unit path (or see status output for loaded entry):
systemctl show -p FragmentPath example.service
Bash
Systemd check timer syntax (every minute from 05 till 23):
systemd-analyze calendar "*-*-* 05..23:*:00" systemd-analyze calendar "*-*-* 00,01,02,03,04:*:00"
Bash