Added Openrc init script
This commit is contained in:
parent
bec2d0e858
commit
cc757b3bdd
15
init-scripts/gemserv.openrc
Executable file
15
init-scripts/gemserv.openrc
Executable 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user