Last active
May 11, 2016 14:50
-
-
Save inertia186/6e82863a134dd5173c70186ed2d8f750 to your computer and use it in GitHub Desktop.
OpenBazaar Loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OB="/home/anthony/gits/OpenBazaar-Server" | |
PID_FILE="/tmp/openbazaard.pid" | |
cd "$OB" | |
while : | |
do | |
date | |
if ! [ -f "$PID_FILE" ]; then | |
python openbazaard.py start -da 0.0.0.0 | |
fi | |
sleep 3300 | |
python openbazaard.py stop | |
while [ -f "$PID_FILE" ]; | |
do | |
sleep 1 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before:
After: