mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 13:42:33 +01:00
15 lines
356 B
Bash
15 lines
356 B
Bash
|
#!/bin/bash
|
||
|
set -eo pipefail
|
||
|
|
||
|
if [ ! -f /data/ionosphere/ionosphere_production.sqlite3 ]; then
|
||
|
bundle exec rake db:create
|
||
|
bundle exec rake db:schema:load
|
||
|
fi
|
||
|
|
||
|
echo "starting transmitter"
|
||
|
bundle exec ruby daemons/transmitter.rb
|
||
|
|
||
|
# shutdown the entire process when any of the background jobs exits (even if successfully)
|
||
|
wait -n
|
||
|
kill -TERM $$
|