my private gentoo overlay
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
769 B

#!/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" \
--exec "/usr/sbin/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
}