Created
August 31, 2016 17:10
-
-
Save mariodian/0bec5f6671ae56b283fcf769bd4f55d9 to your computer and use it in GitHub Desktop.
Debian Systemd OpenBazaar 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
# 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