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
This commit is contained in:
Daniel Barlow 2024-08-14 22:41:56 +01:00
parent 310ac30f24
commit d2d3af2587
1 changed files with 4 additions and 4 deletions

View File

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