Reduce ADSBX API usage.

By default, run the bot script every 15 seconds instead of every 10.
And if there's an error, wait 30 seconds to restart instead of 10.
This commit is contained in:
John Wiseman 2020-05-28 12:35:11 -07:00
parent 2543fdc5e4
commit cafbca970e
2 changed files with 2 additions and 2 deletions

View File

@ -10,4 +10,4 @@ sqb_path=/usr/local/share/advisorycircular/clean-basestation.sqb
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 10 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 15 node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path" --basestation-sqb "$sqb_path" --history "$history_path" --log-prefix "$instance")

View File

@ -8,7 +8,7 @@ After=network.target
Type=simple
User=advisorycircular
Restart=always
RestartSec=10s
RestartSec=30s
ExecStart=/usr/local/share/advisorycircular/advisorycircular %i
[Install]