Skip to content

Instantly share code, notes, and snippets.

@inertia186
Last active May 11, 2016 14:50
Show Gist options
  • Save inertia186/6e82863a134dd5173c70186ed2d8f750 to your computer and use it in GitHub Desktop.
Save inertia186/6e82863a134dd5173c70186ed2d8f750 to your computer and use it in GitHub Desktop.
OpenBazaar Loop
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
@inertia186
Copy link
Author

inertia186 commented May 4, 2016

Before:

before

After:

after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment