From 3158087c78c183651dffcce2ed56ff63e8348742 Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Wed, 29 Sep 2021 03:09:13 +0200 Subject: [PATCH] tarsnap: always ping ipv4 address in preStart --- nixos/modules/services/backup/tarsnap.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/backup/tarsnap.nix b/nixos/modules/services/backup/tarsnap.nix index 8187042b4b80..3cf21c1baa7c 100644 --- a/nixos/modules/services/backup/tarsnap.nix +++ b/nixos/modules/services/backup/tarsnap.nix @@ -310,7 +310,7 @@ in # the service - therefore we sleep in a loop until we can ping the # endpoint. preStart = '' - while ! ping -q -c 1 v1-0-0-server.tarsnap.com &> /dev/null; do sleep 3; done + while ! ping -4 -q -c 1 v1-0-0-server.tarsnap.com &> /dev/null; do sleep 3; done ''; script = let