diff --git a/command.rec b/command.rec index 53b0a50..bba71fe 100644 --- a/command.rec +++ b/command.rec @@ -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 diff --git a/system/systemd/making-services.md b/system/systemd/making-services.md index a417524..5ec20c2 100644 --- a/system/systemd/making-services.md +++ b/system/systemd/making-services.md @@ -1,5 +1,5 @@ --- -title: Making Services +title: Make a Service tags: - systemd ---