infra/ansible/roles/bitcoind/files/bitcoind.service
2021-01-07 20:02:04 -05:00

18 lines
387 B
Desktop File

[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