added docker checking to wormhole runner
This commit is contained in:
parent
769eb5c509
commit
bd329f54a8
|
@ -3,12 +3,9 @@
|
|||
set -euo pipefail
|
||||
|
||||
# Check if Docker is running
|
||||
if [ ! $(docker ps > /dev/null 2>&1) ]; then
|
||||
echo "ERROR: Please start docker and try this command again."
|
||||
exit 3
|
||||
fi
|
||||
|
||||
docker ps > /dev/null #route error to console
|
||||
echo "Docker is running"
|
||||
|
||||
# Start guardiand
|
||||
#npx pm2 delete guardiand 2> /dev/null || true
|
||||
#npx pm2 start 'bash guardiand.bash' --name guardiand
|
||||
npx pm2 delete guardiand 2> /dev/null || true
|
||||
npx pm2 start 'bash guardiand.bash' --name guardiand
|
||||
|
|
Loading…
Reference in New Issue