Skip to content

Commit 37f3464

Browse files
committed
Merge branch 'marlowe-run-autoreboot'
2 parents e837382 + f497544 commit 37f3464

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bitte/pab.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,10 @@ writeShellScriptBin "entrypoint" ''
102102
103103
${pab-init-cmd}/bin/pab-init-cmd
104104
105-
exec ${pabExe} --config=${pabYaml} all-servers
105+
# Ugly ugly hack to kill the PAB at midnight UTC
106+
${pabExe} --config=${pabYaml} all-servers&
107+
pab_pid=$!
108+
sleep $(($(date -f - +%s- <<< $'tomorrow 00:00\nnow')0))
109+
kill $pab_pid
110+
exit 1
106111
''

0 commit comments

Comments
 (0)