mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
28 lines
789 B
Desktop File
28 lines
789 B
Desktop File
# bitcoind service
|
|
# /etc/systemd/system/bitcoind.service
|
|
|
|
[Unit]
|
|
Description=Bitcoin daemon
|
|
After=network.target mynode.service
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/bin/wait_on_uploader.sh
|
|
ExecStartPre=/bin/sh -c 'cat /mnt/hdd/mynode/quicksync/.quicksync_complete'
|
|
EnvironmentFile=/mnt/hdd/mynode/bitcoin/env
|
|
ExecStart=/usr/local/bin/bitcoind -daemon $BTCARGS -deprecatedrpc=accounts -par=-1 -conf=/home/bitcoin/.bitcoin/bitcoin.conf -printtoconsole -pid=/home/bitcoin/.bitcoin/bitcoind.pid
|
|
ExecStartPost=+/usr/bin/mynode_post_bitcoin.sh
|
|
PIDFile=/home/bitcoin/.bitcoin/bitcoind.pid
|
|
User=bitcoin
|
|
Group=bitcoin
|
|
Type=forking
|
|
KillMode=process
|
|
Restart=always
|
|
Nice=0
|
|
TimeoutSec=300
|
|
RestartSec=30
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=bitcoind
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |