net-p2p/dogecoind-1.5.1-r1
[portage-squeep] / net-p2p / dogecoind / files / dogecoin.service
diff --git a/net-p2p/dogecoind/files/dogecoin.service b/net-p2p/dogecoind/files/dogecoin.service
new file mode 100644 (file)
index 0000000..474268d
--- /dev/null
@@ -0,0 +1,30 @@
+# It's not recommended to modify this file in-place, because it will be
+# overwritten during package upgrades. If you want to customize, the
+# best way is to create file
+# "/etc/systemd/system/dogecoind.service.d/*.conf"
+# containing your changes
+
+# For example, if you want to change some daemon and/or unit options,
+# create a file named
+# "/etc/systemd/system/dogecoind.service.d/myopts.conf"
+# containing:
+#       [Service]
+#       Environment="DOGECOIN_OPTS=-debug -logtimestamps"
+#       Nice=10
+# This will override the setting appearing below.
+
+# Note that almost all daemon options could be specified in
+# /etc/dogecoin/dogecoin.conf
+
+[Unit]
+Description=Dogecoin Daemon
+After=network.target
+
+[Service]
+User=dogecoin
+Environment=DOGECOIN_OPTS=
+ExecStart=/usr/bin/dogecoind -daemon=0 $DOGECOIN_OPTS
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target