diff options
author | sefidel <contact@sefidel.net> | 2023-09-21 20:12:31 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-09-24 10:12:49 +0900 |
commit | 57892f421ab951cd26b57b79cf13d61eecf729f7 (patch) | |
tree | beaabd0af0a93abb03725f1c8201b509899ee4a8 /nixos | |
parent | 2eb4b80e9e167a69b3c450934b0fb60c18aca8ec (diff) | |
download | nixrc-57892f421ab951cd26b57b79cf13d61eecf729f7.tar.gz nixrc-57892f421ab951cd26b57b79cf13d61eecf729f7.zip |
feat(nixos/alpha): borgbackup: suppress ping output
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/alpha/configuration.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index 5af387e..6fac8e7 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -177,7 +177,9 @@ systemd.services."borgbackup-job-alpha-rolling" = { preStart = lib.mkBefore '' # Wait until internet is reachable after resuming - until /run/wrappers/bin/ping rsync.net -c1 -q >/dev/null; do :; done + echo "Waiting until the remote is reachable..." + until /run/wrappers/bin/ping rsync.net -c1 -q >/dev/null 2>&1; do :; done + echo "Remote is reachable, exiting preStart" ''; }; |