Skip to content

Instantly share code, notes, and snippets.

@mariodian
Created April 11, 2016 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariodian/d2f3e20b9e83d3bf339cf7da66b33f1f to your computer and use it in GitHub Desktop.
Save mariodian/d2f3e20b9e83d3bf339cf7da66b33f1f to your computer and use it in GitHub Desktop.
OpenBazaar upstart service
# Startup script for OpenBazaar Server that will auto-restart if crashed
# Copy this script to /etc/init folder
# "chmod 644 openbazaar.conf"
# Change "chdir", "setuid" and "setgid" according to your system
# Usage: "sudo service openbazaar start"
description "OpenBazaar Server"
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
env IP='0.0.0.0'
chdir /home/ubuntu/OpenBazaar-Server
setuid ubuntu
setgid ubuntu
respawn
respawn limit 2 5
exec python ./openbazaard.py start -a $IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment