#!/bin/sh # description: TeamSpeak # chkconfig: 2345 99 10 USER="ts3user" TS3='/home/ts3user/teamspeak3-server_linux-x86' STARTSCRIPT="$TS3/ts3server_startscript.sh" cd $TS3 case "$1" in start) su $USER -c "$STARTSCRIPT start" ;; stop) su $USER -c "$STARTSCRIPT stop" ;; restart) su $USER -c "$STARTSCRIPT restart" ;; status) su $USER -c "$STARTSCRIPT status" ;; *) echo "Usage $0 start|stop|restart|status" esac
teamspeak3 server
Categories: