Created
April 11, 2016 12:06
-
-
Save mariodian/d2f3e20b9e83d3bf339cf7da66b33f1f to your computer and use it in GitHub Desktop.
OpenBazaar upstart service
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
# 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