xdapp-book/projects/wormhole-local-validator/spy.bash

12 lines
250 B
Bash
Raw Permalink Normal View History

2022-12-18 21:23:31 -08:00
#!/usr/bin/env bash
set -euo pipefail
# Check if Docker is running
docker ps > /dev/null #route error to console
echo "Docker is running"
# Start guardiand
npx pm2 delete spy 2> /dev/null || true
npx pm2 start 'bash spy_guardiand.bash' --name spy