From 3910ed2bc7bbcc3a52420989bc03cbcb9fbc3b2e Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Sat, 6 Jun 2020 22:51:52 -0700 Subject: [PATCH] Hit the API every 15 seconds. --- advisorycircular.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advisorycircular.sh b/advisorycircular.sh index e4d1c61..7ebdecd 100644 --- a/advisorycircular.sh +++ b/advisorycircular.sh @@ -6,8 +6,9 @@ instance="$1" config_dir=/etc/advisorycircular run_dir=/var/lib/advisorycircular sqb_path=/usr/local/share/advisorycircular/clean-basestation.sqb +interval=15 config_path="$config_dir"/"$instance"-config.yaml secrets_path="$config_dir"/"$instance"-secrets.yaml history_path="$run_dir"/"$instance"-history.json -(cd "$run_dir" && "$dir"/intervalexec 15 node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path" --basestation-sqb "$sqb_path" --history "$history_path" --log-prefix "$instance") +(cd "$run_dir" && "$dir"/intervalexec $interval node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path" --basestation-sqb "$sqb_path" --history "$history_path" --log-prefix "$instance")