summarylogtreecommitdiffstats
path: root/bitcoin-reindex.service
blob: 236a24d05e54c7015e96909a7d5b198097543ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Bitcoin Daemon (reindex)
Conflicts=bitcoin.service
After=network.target

[Service]
User=bitcoin
Group=bitcoin
ExecStart=/usr/bin/bitcoind -daemon=0                       \
                            -conf=/etc/bitcoin/bitcoin.conf \
                            -datadir=/srv/bitcoin           \
                            -reindex                        \
                            -pid=/run/bitcoind.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/bitcoind stop
PrivateTmp=true

[Install]
WantedBy=multi-user.target