mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
30 lines
No EOL
723 B
Desktop File
30 lines
No EOL
723 B
Desktop File
# RaspiBlitz: systemd unit for bitcoind
|
|
[Unit]
|
|
Description=Bitcoin-Daemon
|
|
Wants=network.target
|
|
After=network.target
|
|
|
|
# for use with sendmail alert
|
|
#OnFailure=systemd-sendmail@%n
|
|
|
|
[Service]
|
|
User=bitcoin
|
|
Group=bitcoin
|
|
Type=forking
|
|
PIDFile=/mnt/hdd/bitcoin/bitcoind.pid
|
|
ExecStartPre=-/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED
|
|
ExecStart=/usr/local/bin/bitcoind -daemon -conf=/mnt/hdd/bitcoin/bitcoin.conf -pid=/mnt/hdd/bitcoin/bitcoind.pid -debuglogfile=/mnt/hdd/bitcoin/debug.log
|
|
Restart=always
|
|
TimeoutSec=120
|
|
RestartSec=30
|
|
StandardOutput=null
|
|
StandardError=journal
|
|
|
|
# Hardening measures
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |