cafbca970e
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.
14 lines
545 B
Bash
14 lines
545 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
dir=$(dirname "$0")
|
|
instance="$1"
|
|
config_dir=/etc/advisorycircular
|
|
run_dir=/var/lib/advisorycircular
|
|
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 15 node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path" --basestation-sqb "$sqb_path" --history "$history_path" --log-prefix "$instance")
|