Skip to content

Instantly share code, notes, and snippets.

@mariodian
Created June 23, 2017 10:44
Show Gist options
  • Save mariodian/9991f718c38ed0bd0f2dafe21b788936 to your computer and use it in GitHub Desktop.
Save mariodian/9991f718c38ed0bd0f2dafe21b788936 to your computer and use it in GitHub Desktop.
OpenBazaar 2.0 startup hack
#!/bin/bash
# Run via cron
# */5 * * * * sh /home/pi/bin/ob2start.sh >/dev/null 2>&1
PID="$(ps aux | grep -i openbazaard.go | grep -v grep | awk {'print $2'})"
if [ -z "$PID" ]; then
go run $GOPATH/src/github.com/OpenBazaar/openbazaar-go/openbazaard.go start
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment