From f5324de0cebb3968ffe28c46efff60819d9fdb9d Mon Sep 17 00:00:00 2001 From: wserr Date: Sat, 20 Dec 2025 07:41:01 +0100 Subject: [PATCH] chore: improved justfile --- justfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index a16c2e1..f58bffb 100644 --- a/justfile +++ b/justfile @@ -7,7 +7,10 @@ backup-all: find ./systemd/recurring-tasks -type f -name "*.service" -exec bash -c 'sudo systemctl restart "$(basename "$1")"' _ {} \; status-services: - find ./systemd/recurring-tasks -type f -name "*.service" -exec bash -c 'sudo systemctl status "$(basename "$1")"' _ {} \; + find ./systemd/recurring-tasks -type f -name "*.service" -exec bash -c 'journalctl -u "$(basename "$1")" >> status-services.txt' _ {} \; status-timers: - find ./systemd/recurring-tasks -type f -name "*.timer" -exec bash -c 'sudo systemctl status "$(basename "$1")"' _ {} \; + find ./systemd/recurring-tasks -type f -name "*.timer" -exec bash -c 'sudo systemctl status "$(basename "$1")" >> status-timers.txt' _ {} \; + +timers command: + find ./systemd/recurring-tasks -type f -name "*.timer" -exec bash -c 'sudo systemctl {{command}} "$(basename "$1")"' _ {} \;