Added Openrc init script

This commit is contained in:
int 80h 2020-05-28 15:25:12 -04:00
parent bec2d0e858
commit cc757b3bdd

15
init-scripts/gemserv.openrc Executable file
View File

@ -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
}