Systemd fixups

This commit is contained in:
2026-05-26 02:53:36 +02:00
parent d7f8c9bae1
commit 4e76fec33c
2 changed files with 12 additions and 3 deletions
+11 -2
View File
@@ -286,7 +286,7 @@ shell: sh
bin: journalctl
tag: system
aim: Find errors since a date
aim: Find service errors in systemd since a date
cmd: date=2027-01-01
+ journalctl --since=${date} --grep="EXT4-fs error"
shell: sh
@@ -294,13 +294,22 @@ bin: journalctl
tag: system
aim: Limit the systemd's journal size to 2 gigabytes
cmd: journalctl --vacuum-size=2G
cmd: journalctl --disk-usage
+ journalctl --vacuum-size=2G
+ journalctl --disk-usage
shell: sh
bin: journalctl
tag: system
tag: logs
aim: List enabled systemd services
cmd: systemctl list-unit-files --state enabled
cmd: systemctl --user list-unit-files --state enabled
shell: sh
bin: systemd
tag: system
tag: service
aim: Log the fact that you've installed your own `dnsmasq` on your system to `journalctl`, so that you can determine why your system's broken later
cmd: logger "Installed new dnsmasq"
+ sudo journalctl -f