#!/bin/sh
########################################################################
# Begin $rc_base/init.d/teamspeak
#
# Description :	Start/Stops the teamspeak server
#
# Authors     : Michael Tremer
#
# Version     : 01.00
#
# Notes       :
#
########################################################################

. /etc/sysconfig/rc
. $rc_functions

case "$1" in
	status)
	    statusproc /opt/teamspeak/server_linux
	;;	
	*)
	    export LANG=en_US.utf8
	    cd /opt/teamspeak && sudo -u teamspeak ./teamspeak2-server_startscript $*
	    exit 0
	;;
esac
# End $rc_base/init.d/teamspeak
