2012-08-04 13:38:21 +02:00
|
|
|
#!/sbin/runscript
|
2014-03-18 10:14:18 +01:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-08-04 13:38:21 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-03-18 10:14:18 +01:00
|
|
|
# $Header: $
|
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 \
|
2013-09-16 18:04:53 +02:00
|
|
|
--user "teamspeak3" --chdir "/etc/teamspeak3-server" \
|
|
|
|
--exec "/opt/teamspeak3-server/sbin/tsdnsserver"
|
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
|
|
|
|
}
|