chore: improve justfiles
This commit is contained in:
9
justfile
9
justfile
@@ -2,3 +2,12 @@ copy-systemd-services:
|
||||
sudo cp ./systemd/recurring-tasks/*.service /etc/systemd/system && \
|
||||
sudo cp ./systemd/recurring-tasks/*.timer /etc/systemd/system && \
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
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")"' _ {} \;
|
||||
|
||||
status-timers:
|
||||
find ./systemd/recurring-tasks -type f -name "*.timer" -exec bash -c 'sudo systemctl status "$(basename "$1")"' _ {} \;
|
||||
|
||||
Reference in New Issue
Block a user