We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e837382 + f497544 commit 37f3464Copy full SHA for 37f3464
bitte/pab.nix
@@ -102,5 +102,10 @@ writeShellScriptBin "entrypoint" ''
102
103
${pab-init-cmd}/bin/pab-init-cmd
104
105
- exec ${pabExe} --config=${pabYaml} all-servers
+ # 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
111
''
0 commit comments