From f1dd96e79e387862b9c1035912ab99d166100fff Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 21 Sep 2023 20:32:43 +0900 Subject: feat(nixos/haruka): borgbackup: suppress ping output --- nixos/haruka/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix index b3ce7e0..521aace 100644 --- a/nixos/haruka/configuration.nix +++ b/nixos/haruka/configuration.nix @@ -181,7 +181,9 @@ systemd.services.borgbackup-job-haruka-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" ''; }; -- cgit 1.4.1