#! /bin/bash
# Copyright (c) 2002 TeamSpeak team   All rights reserved.
#
# Author: Niels Werensteijn 2002
#

case "$1" in
    start)
        ./server_linux -PID=tsserver2.pid
	;;
    stop)
        kill -TERM `cat tsserver2.pid`
	;;
    restart)
	$0 stop && $0 start || return=$rc_failed
	;;
    *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac
exit 0
