summarylogtreecommitdiffstats
path: root/bitcoin.service
diff options
context:
space:
mode:
authorAndrew DeMaria2015-08-16 16:25:36 -0500
committerAndrew DeMaria2015-08-16 16:25:36 -0500
commitfe68456154b803f67ec91310d032cd8b997733ec (patch)
treeb89defc5c27b5287177c9f0d567e4cfb36764057 /bitcoin.service
downloadaur-fe68456154b803f67ec91310d032cd8b997733ec.tar.gz
first commit
Diffstat (limited to 'bitcoin.service')
-rw-r--r--bitcoin.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/bitcoin.service b/bitcoin.service
new file mode 100644
index 00000000000..fda8f327050
--- /dev/null
+++ b/bitcoin.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Bitcoin Daemon
+Conflicts=bitcoin-reindex.service
+After=network.target
+
+[Service]
+User=bitcoin
+Group=bitcoin
+ExecStart=/usr/bin/bitcoind -daemon=0 \
+ -conf=/etc/bitcoin/bitcoin.conf \
+ -datadir=/srv/bitcoin \
+ -pid=/run/bitcoind.pid
+ExecReload=/usr/bin/kill -HUP $MAINPID
+ExecStop=/usr/bin/bitcoind stop
+
+[Install]
+WantedBy=multi-user.target