aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/gemserv/files/gemserv.initd')
-rw-r--r--net-misc/gemserv/files/gemserv.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/gemserv/files/gemserv.initd b/net-misc/gemserv/files/gemserv.initd
new file mode 100644
index 00000000..ac445176
--- /dev/null
+++ b/net-misc/gemserv/files/gemserv.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Gemini server"
+pidfile="/var/run/gemserv.pid"
+command="/usr/bin/gemserv"
+command_args="${GEMSERV_CONFIG:-/etc/gemserv/config.toml} > ${GEMSERV_LOGFILE:-/dev/null}"
+command_user="${GEMSERV_USER:-gemini}"
+command_background="true"
+
+depend() {
+ need net
+ use dns
+}