From d2d3af25879d23590faba799ba693ad3e531f00f Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 14 Aug 2024 22:41:56 +0100 Subject: [PATCH] outboard secrets: loop in service if we just quit and expect s6 to restart us, the finish script wipes our outputs and anything with an inotify watch gets confused --- modules/secrets/outboard.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/secrets/outboard.nix b/modules/secrets/outboard.nix index d5a8e1e..d32389f 100644 --- a/modules/secrets/outboard.nix +++ b/modules/secrets/outboard.nix @@ -7,13 +7,13 @@ let in longrun { inherit name; buildInputs = [ http-fstree ]; - # this script runs once and expects the service superviser - # to restart it run = '' . ${serviceFns} ( in_outputs ${name} - ${http-fstree}/bin/http-fstree ${url} . - sleep ${builtins.toString (interval * 60)} + while : ; do + ${http-fstree}/bin/http-fstree ${url} . + sleep ${builtins.toString (interval * 60)} + done ) ''; }