#!/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 "/etc/teamspeak3-server" \ --exec "/opt/teamspeak3-server/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 }