2012-08-04 13:38:21 +02:00
|
|
|
#!/sbin/runscript
|
2013-05-11 04:53:38 +02:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-08-04 13:38:21 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-05-11 04:53:38 +02:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/files/teamspeak-server-bin-3.0.7.1.rc,v 1.1 2013/04/25 18:11:05 tomwij Exp $
|
2012-08-04 13:38:21 +02:00
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "Starting TeamSpeak 3 TSDNS Server"
|
|
|
|
|
|
|
|
start-stop-daemon --start --quiet --background \
|
2013-05-11 05:06:56 +02:00
|
|
|
--pidfile "/var/run/teamspeak3-server/tsdns.pid" --make-pidfile \
|
2012-08-04 13:38:21 +02:00
|
|
|
--user "teamspeak3" --chdir "/opt/teamspeak3-server/tsdns" \
|
2013-05-11 05:23:00 +02:00
|
|
|
--exec "/opt/teamspeak3-server/tsdns/tsdnsserver_linux"
|
2012-08-04 13:38:21 +02:00
|
|
|
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping TeamSpeak 3 TSDNS Server"
|
|
|
|
|
|
|
|
start-stop-daemon --stop --quiet \
|
2013-05-11 05:06:56 +02:00
|
|
|
--pidfile "/var/run/teamspeak3-server/tsdns.pid"
|
2012-08-04 13:38:21 +02:00
|
|
|
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
restart() {
|
|
|
|
svc_stop
|
|
|
|
sleep 3
|
|
|
|
svc_start
|
|
|
|
}
|