bitcore/scripts/debian/bitcore-bitcoind.service

20 lines
496 B
SYSTEMD
Raw Normal View History

2016-04-25 13:57:14 -07:00
[Unit]
2016-04-27 12:02:57 -07:00
Description=Bitcoin Core for Bitcore
2016-04-25 13:57:14 -07:00
Requires=network.target
[Service]
Type=simple
WorkingDirectory=/usr/opt/bitcore
2016-04-27 12:02:57 -07:00
ExecStart=/usr/bin/bitcore-bitcoind -datadir=/home/bitcore/.bitcore/data/
2016-04-25 13:57:14 -07:00
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=15
User=bitcore
ExecStartPre=/bin/mkdir -p /run/bitcore
ExecStartPre=/bin/chown bitcore:bitcore /run/bitcore
ExecStartPre=/bin/chmod 755 /run/bitcore
PermissionsStartOnly=true
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target