chore: improved justfile
This commit is contained in:
7
justfile
7
justfile
@@ -7,7 +7,10 @@ backup-all:
|
|||||||
find ./systemd/recurring-tasks -type f -name "*.service" -exec bash -c 'sudo systemctl restart "$(basename "$1")"' _ {} \;
|
find ./systemd/recurring-tasks -type f -name "*.service" -exec bash -c 'sudo systemctl restart "$(basename "$1")"' _ {} \;
|
||||||
|
|
||||||
status-services:
|
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:
|
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")"' _ {} \;
|
||||||
|
|||||||
Reference in New Issue
Block a user