summarylogtreecommitdiffstats
path: root/denariusd.service
diff options
context:
space:
mode:
Diffstat (limited to 'denariusd.service')
-rw-r--r--denariusd.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/denariusd.service b/denariusd.service
new file mode 100644
index 000000000000..8afb73d6004d
--- /dev/null
+++ b/denariusd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Denarius: Ancient money for a new world
+Wants=network.target
+After=network.target
+
+[Service]
+ProtectHome=true
+ProtectSystem=true
+SyslogIdentifier=denariusd
+ExecStartPre=/bin/sh -ec "if ! test -s /var/lib/denarius/denarius.conf; \
+ then umask 0077; \
+ /usr/bin/mkdir -p /var/lib/denarius ; \
+ /usr/bin/denariusd -port=0 -conf=/dev/null 2>&1 | grep -A 1 rpcuser > /var/lib/denarius/denarius.conf; \
+ echo 'WARNING: A new /var/lib/denarius/denarius.conf file has been generated.'; \
+ fi"
+ExecStart=/usr/bin/denariusd -datadir=/var/lib/denarius
+
+[Install]
+WantedBy=multi-user.target