2018-07-29 12:21:52 +02:00
|
|
|
# RaspiBlitz: systemd unit for bitcoind
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Bitcoin daemon
|
2018-10-16 13:09:14 +02:00
|
|
|
Wants=bootstrap.service
|
|
|
|
After=bootstrap.service
|
2018-07-29 12:21:52 +02:00
|
|
|
|
|
|
|
# for use with sendmail alert (coming soon)
|
|
|
|
#OnFailure=systemd-sendmail@%n
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=forking
|
2021-04-17 22:01:26 +02:00
|
|
|
PIDFile=/mnt/hdd/bitcoin/bitcoind.pid
|
2019-04-24 13:47:58 +02:00
|
|
|
ExecStartPre=-/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED
|
2021-04-17 22:01:26 +02:00
|
|
|
ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/mnt/hdd/bitcoin/bitcoind.pid
|
2018-07-29 12:21:52 +02:00
|
|
|
KillMode=process
|
|
|
|
Restart=always
|
|
|
|
TimeoutSec=120
|
|
|
|
RestartSec=30
|
2019-03-15 15:03:59 +01:00
|
|
|
StandardOutput=null
|
|
|
|
StandardError=journal
|
2018-07-29 12:21:52 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|