liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d2d3af25879d23590faba799ba693ad3e531f00f
parent 310ac30f2423f8c3e0cd63575a7e929aa9f8ea02
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 14 Aug 2024 22:41:56 +0100

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

Diffstat:
Mmodules/secrets/outboard.nix | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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 ) ''; }