infra/ansible/roles/bitcoind/files/bitcoind.service

18 lines
387 B
SYSTEMD
Raw Normal View History

2021-01-08 01:02:04 +00:00
[Unit]
Description=Bitcoin daemon
[Service]
ExecStartPre=/bin/sh -c 'sleep 30'
ExecStart=/usr/bin/bitcoind -daemon -conf=/home/bitcoind/.bitcoin/bitcoin.conf -pid=/home/bitcoind/.bitcoin/bitcoind.pid
PIDFile=/home/bitcoind/.bitcoin/bitcoind.pid
User=bitcoind
Group=bitcoind
Type=forking
KillMode=process
Restart=always
TimeoutSec=120
RestartSec=30
[Install]
WantedBy=multi-user.target