From f459a91de588a5647e60e6838eed8c76ccc1ebaa Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 22 Mar 2025 04:28:55 +0100 Subject: Ignore ddclient service failures, to avoid IPv4 A record not being set breaking switching Signed-off-by: Mel --- modules/ddns.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules') diff --git a/modules/ddns.nix b/modules/ddns.nix index c24ac87..253e3e4 100644 --- a/modules/ddns.nix +++ b/modules/ddns.nix @@ -23,4 +23,12 @@ in domains = [ "${me.name}.${domain}" ]; passwordFile = config.age.secrets.cloudflare-dns.path; }; + + systemd.services.ddclient = { + # ddclient likes failing the whole process when + # one part of the operation did not succeed, like + # setting the A record, which i do not want anyway. + # treat these failures as a success: + serviceConfig.SuccessExitStatus = [ 0 1 ]; + }; } -- cgit 1.4.1