2021-04-11 00:51:26 +00:00
|
|
|
# bitcoin service
|
|
|
|
# /etc/systemd/system/bitcoin.service
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Bitcoin daemon
|
|
|
|
After=network.target mynode.service
|
|
|
|
|
|
|
|
[Service]
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
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'
|
2021-04-29 02:12:57 +00:00
|
|
|
ExecStartPre=+/usr/bin/mynode_gen_bitcoin_config.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
EnvironmentFile=/mnt/hdd/mynode/bitcoin/env
|
2021-04-11 00:51:26 +00:00
|
|
|
ExecStart=/usr/local/bin/bitcoind -daemon $BTCARGS -deprecatedrpc=accounts -par=-1 -conf=/home/bitcoin/.bitcoin/bitcoin.conf -printtoconsole -pid=/home/bitcoin/.bitcoin/bitcoin.pid
|
2022-02-13 03:59:04 +00:00
|
|
|
ExecStartPost=+/usr/bin/service_post/post_bitcoin.sh
|
2021-04-11 00:51:26 +00:00
|
|
|
PIDFile=/home/bitcoin/.bitcoin/bitcoin.pid
|
2019-06-15 23:02:44 +00:00
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=forking
|
|
|
|
KillMode=process
|
|
|
|
Restart=always
|
2019-12-19 05:34:27 +00:00
|
|
|
Nice=0
|
2020-05-09 03:36:14 +00:00
|
|
|
IOAccounting=true
|
|
|
|
IOWeight=200
|
2019-06-15 23:02:44 +00:00
|
|
|
TimeoutSec=300
|
|
|
|
RestartSec=30
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2021-04-11 00:51:26 +00:00
|
|
|
SyslogIdentifier=bitcoin
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|