2019-06-15 23:02:44 +00:00
|
|
|
# bitcoind service
|
|
|
|
# /etc/systemd/system/bitcoind.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Bitcoin daemon
|
|
|
|
After=network.target mynode.service
|
|
|
|
|
|
|
|
[Service]
|
2019-07-25 02:51:12 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_uploader.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
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
|
2019-08-20 01:36:58 +00:00
|
|
|
ExecStartPost=+/usr/bin/mynode_post_bitcoin.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
PIDFile=/home/bitcoin/.bitcoin/bitcoind.pid
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=forking
|
|
|
|
KillMode=process
|
|
|
|
Restart=always
|
2019-08-13 03:38:47 +00:00
|
|
|
Nice=-1
|
2019-06-15 23:02:44 +00:00
|
|
|
TimeoutSec=300
|
|
|
|
RestartSec=30
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=bitcoind
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|