Skip to content

Instantly share code, notes, and snippets.

@tyler-smith
Last active December 17, 2016 20:43
Show Gist options
  • Save tyler-smith/061f84e2020a5b6ec8f554c983778232 to your computer and use it in GitHub Desktop.
Save tyler-smith/061f84e2020a5b6ec8f554c983778232 to your computer and use it in GitHub Desktop.
Simple OpenBazaar Server Upstart Script
# Create an openbazaar user and group
# Checkout the server repo to /home/openbazaar/openbazaar
# Install virtual env to /home/openbazaar/openbazaar/venv and install the pip requirements there
setuid openbazaar
setgid openbazaar
chdir /home/openbazaar/openbazaar
respawn
start on runlevel [2345]
stop on runlevel [06]
exec ./venv/bin/python \
./openbazaard.py start \
-a 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment