Hit the API every 15 seconds.

This commit is contained in:
John Wiseman 2020-06-06 22:51:52 -07:00
parent 84186f5be4
commit 3910ed2bc7

View File

@ -6,8 +6,9 @@ instance="$1"
config_dir=/etc/advisorycircular config_dir=/etc/advisorycircular
run_dir=/var/lib/advisorycircular run_dir=/var/lib/advisorycircular
sqb_path=/usr/local/share/advisorycircular/clean-basestation.sqb sqb_path=/usr/local/share/advisorycircular/clean-basestation.sqb
interval=15
config_path="$config_dir"/"$instance"-config.yaml config_path="$config_dir"/"$instance"-config.yaml
secrets_path="$config_dir"/"$instance"-secrets.yaml secrets_path="$config_dir"/"$instance"-secrets.yaml
history_path="$run_dir"/"$instance"-history.json 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")