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:
parent
2543fdc5e4
commit
cafbca970e
@ -10,4 +10,4 @@ sqb_path=/usr/local/share/advisorycircular/clean-basestation.sqb
|
|||||||
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 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")
|
||||||
|
@ -8,7 +8,7 @@ After=network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=advisorycircular
|
User=advisorycircular
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10s
|
RestartSec=30s
|
||||||
ExecStart=/usr/local/share/advisorycircular/advisorycircular %i
|
ExecStart=/usr/local/share/advisorycircular/advisorycircular %i
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user