Overlay/games-action/minetest/files/minetestserver.initd

37 lines
682 B
Plaintext
Raw Normal View History

2012-12-07 14:19:33 +04:00
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
2012-12-07 14:19:33 +04:00
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/files/minetestserver.initd,v 1.1 2013/08/05 22:31:13 hasufell Exp $
2012-12-07 14:19:33 +04:00
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 $?
}