Zeta is complicated; failsafe is not.
Failsafes job is to ensure that zeta is running.
To accomplish this goal we:
- Copy a script over to our "working directory"
- Execute a script on the machine where zeta can run.
- Script checks to see if the process+db is running
- If it's running return early
- If not running: start a new process in tmux.
# runtime needs this:
$ export SLACK_API_TOKEN=xxxx
# compiler needs this:
$ export SSH_USER=xxxx
$ export SSH_HOST=xxxx
$ export SSH_PASS=xxxx
$ cargo run