summarylogtreecommitdiffstats
path: root/bitcoin-reindex.service
diff options
context:
space:
mode:
authorFabien2020-11-06 21:31:08 +0100
committerFabien2020-11-06 21:31:33 +0100
commit9ac4b781dc071a6e619b6d059b25b8f7d0bbfef8 (patch)
treeeb290fb2fbc8b78decbfb78141c815c968a423f0 /bitcoin-reindex.service
downloadaur-9ac4b781dc071a6e619b6d059b25b8f7d0bbfef8.tar.gz
Initial version
Diffstat (limited to 'bitcoin-reindex.service')
-rw-r--r--bitcoin-reindex.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/bitcoin-reindex.service b/bitcoin-reindex.service
new file mode 100644
index 00000000000..52900d8fc4c
--- /dev/null
+++ b/bitcoin-reindex.service
@@ -0,0 +1,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/bitcoin/bitcoind.pid
+ExecReload=/usr/bin/kill -HUP $MAINPID
+ExecStop=/usr/bin/bitcoind stop
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target