Systemd fixups
This commit is contained in:
+11
-2
@@ -286,7 +286,7 @@ shell: sh
|
|||||||
bin: journalctl
|
bin: journalctl
|
||||||
tag: system
|
tag: system
|
||||||
|
|
||||||
aim: Find errors since a date
|
aim: Find service errors in systemd since a date
|
||||||
cmd: date=2027-01-01
|
cmd: date=2027-01-01
|
||||||
+ journalctl --since=${date} --grep="EXT4-fs error"
|
+ journalctl --since=${date} --grep="EXT4-fs error"
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -294,13 +294,22 @@ bin: journalctl
|
|||||||
tag: system
|
tag: system
|
||||||
|
|
||||||
aim: Limit the systemd's journal size to 2 gigabytes
|
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
|
+ journalctl --disk-usage
|
||||||
shell: sh
|
shell: sh
|
||||||
bin: journalctl
|
bin: journalctl
|
||||||
tag: system
|
tag: system
|
||||||
tag: logs
|
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
|
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"
|
cmd: logger "Installed new dnsmasq"
|
||||||
+ sudo journalctl -f
|
+ sudo journalctl -f
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: Making Services
|
title: Make a Service
|
||||||
tags:
|
tags:
|
||||||
- systemd
|
- systemd
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user