Skip to content

Instantly share code, notes, and snippets.

@mariodian
Created August 31, 2016 17:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariodian/0bec5f6671ae56b283fcf769bd4f55d9 to your computer and use it in GitHub Desktop.
Save mariodian/0bec5f6671ae56b283fcf769bd4f55d9 to your computer and use it in GitHub Desktop.
Debian Systemd OpenBazaar Service
# Save as /lib/systemd/system/openbazaar.service
[Unit]
Description=OpenBazaar server
After=network.target auditd.service
[Service]
Type=forking
User=pi
Group=pi
PIDFile=/tmp/openbazaard.pid
ExecStart=/bin/sh /home/pi/bin/ob.sh start
ExecStop=/bin/sh /home/pi/bin/ob.sh stop
Restart=on-failure
TimeoutSec=60
#RestartSec=60
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment