gentoo/media-sound/teamspeak-server-bin/files/teamspeak3-server.rc
Robert Förster e87c0b9b65 [media-sound/teamspeak-server-bin] version bump from tree, includes TSDNS support.
NB: TSDNS support in the ebuild might go away in the future in favor of SRV records as they do not require some additional services
2012-08-04 13:38:21 +02:00

40 lines
960 B
Plaintext

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/files/teamspeak3-server.rc,v 1.5 2012/05/10 20:14:34 trapni Exp $
depend() {
need net
use mysql
}
start() {
ebegin "Starting TeamSpeak 3 Server"
# ensure, that the TS3-server finds all custom supplied shared objects on startup.
export LD_LIBRARY_PATH="/opt/teamspeak3-server:$LD_LIBRARY_PATH"
start-stop-daemon --start --quiet --background \
--pidfile "/var/run/teamspeak3-server/server.pid" --make-pidfile \
--user "teamspeak3" --chdir "/opt/teamspeak3-server" \
--exec "/usr/sbin/ts3server" -- \
inifile="/etc/teamspeak3-server/server.conf"
eend $?
}
stop() {
ebegin "Stopping TeamSpeak 3 Server"
start-stop-daemon --stop --quiet \
--pidfile "/var/run/teamspeak3-server/server.pid"
eend $?
}
restart() {
svc_stop
sleep 3
svc_start
}