35 lines
800 B
Plaintext
35 lines
800 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $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 $
|
|
|
|
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_linux"
|
|
|
|
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
|
|
}
|