mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-25 00:19:49 +02:00
35 lines
555 B
Text
35 lines
555 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description="Minetest dedicated server"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start() {
|
|
ebegin "starting server"
|
|
start-stop-daemon \
|
|
--start \
|
|
--quiet \
|
|
--make-pidfile \
|
|
--pidfile "${PIDFILE}" \
|
|
--background \
|
|
--user ${USER} \
|
|
--group ${GROUP} \
|
|
--exec "${MINETESTBIN}" -- ${ARGS}
|
|
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "stopping server"
|
|
start-stop-daemon \
|
|
--stop \
|
|
--signal 15 \
|
|
--quiet \
|
|
--pidfile "${PIDFILE}"
|
|
|
|
eend $?
|
|
}
|