mynode/rootfs/standard/etc/systemd/system/bitcoin.service

32 lines
919 B
SYSTEMD
Raw Normal View History

# 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'
ExecStartPre=+/usr/bin/mynode_gen_bitcoin_config.sh
2019-06-15 23:02:44 +00:00
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/bitcoin.pid
2022-02-13 03:59:04 +00:00
ExecStartPost=+/usr/bin/service_post/post_bitcoin.sh
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
SyslogIdentifier=bitcoin
2019-06-15 23:02:44 +00:00
[Install]
WantedBy=multi-user.target