summarylogtreecommitdiffstats
path: root/electrumx.service
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-03-12 13:15:42 -0700
committerAndy Weidenbaum2017-03-12 13:15:42 -0700
commitf0ae7f250f3bf293bd033987643b072ec51f4402 (patch)
tree64dca3e0876bd971a81fac26d6edec32b117b490 /electrumx.service
downloadaur-f0ae7f250f3bf293bd033987643b072ec51f4402.tar.gz
Initial import
Diffstat (limited to 'electrumx.service')
-rw-r--r--electrumx.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/electrumx.service b/electrumx.service
new file mode 100644
index 00000000000..f9efc5233c1
--- /dev/null
+++ b/electrumx.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=ElectrumX Server
+Wants=bitcoin.service
+After=network.target bitcoin.service
+
+[Service]
+EnvironmentFile=/etc/electrumx/electrumx.conf
+ExecStart=/usr/bin/electrumx-server
+ExecReload=/usr/bin/kill -s SIGHUP $MAINPID
+ExecStop=/usr/bin/electrumx-rpc -p 8000 stop
+User=electrumx
+Group=electrumx
+LimitNOFILE=infinity
+TimeoutStopSec=30min
+
+[Install]
+WantedBy=multi-user.target