[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
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2011 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.4 2010/09/11 16:01:50 trapni Exp $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting TeamSpeak 3 TSDNS Server"
|
||||
|
||||
start-stop-daemon --start --quiet --background \
|
||||
--pidfile "/var/run/teamspeak3-server/tsdns.pid" --make-pidfile \
|
||||
--user "teamspeak3" --chdir "/opt/teamspeak3-server/tsdns" \
|
||||
--exec "/opt/teamspeak3-server/tsdns/tsdnsserver"
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping TeamSpeak 3 TSDNS Server"
|
||||
|
||||
start-stop-daemon --stop --quiet \
|
||||
--pidfile "/var/run/teamspeak3-server/tsdns.pid"
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
restart() {
|
||||
svc_stop
|
||||
sleep 3
|
||||
svc_start
|
||||
}
|
||||
Reference in New Issue
Block a user