From 57892f421ab951cd26b57b79cf13d61eecf729f7 Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 21 Sep 2023 20:12:31 +0900 Subject: feat(nixos/alpha): borgbackup: suppress ping output --- nixos/alpha/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nixos') 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" ''; }; -- cgit 1.4.1