summarylogtreecommitdiffstats
path: root/bitcoin-reindex.service
blob: 3fea386907954aa09a5e8635ff76bc2ad865c3d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[Unit]
Description=Bitcoin Daemon (reindex)
Conflicts=bitcoin.service
After=network.target

[Service]
Type=forking
User=bitcoin
Group=bitcoin
ExecStart=/usr/bin/bitcoind -daemon                         \
                            -conf=/etc/bitcoin/bitcoin.conf \
                            -datadir=/srv/bitcoin           \
                            -reindex                        \
                            -pid=/run/bitcoin/bitcoind.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/bitcoind stop
Restart=on-failure
RuntimeDirectory=bitcoin
PIDFile=/run/bitcoin/bitcoind.pid
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectSystem=full
SystemCallArchitectures=native

[Install]
WantedBy=multi-user.target