From ce45149dc3b778b9ace472ad2266466e46ef67d8 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 18 Dec 2023 15:38:46 +0100 Subject: [PATCH] fix(nextcloud-preview): Restart the service when then DNS resolution inevitably fails even though it is hardcoded in the hosts file --- machines/compute01/nextcloud.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/machines/compute01/nextcloud.nix b/machines/compute01/nextcloud.nix index 0c7fab4..5c201d3 100644 --- a/machines/compute01/nextcloud.nix +++ b/machines/compute01/nextcloud.nix @@ -169,6 +169,7 @@ in { description = "Generate preview for nextcloud media."; script = "${nextcloud-occ} preview:pre-generate -vvv"; startAt = "*-*-* 01:00:00 UTC"; + serviceConfig = { Restart = "on-failure"; }; }; nextcloud-cron.path = [ pkgs.perl ];