#!/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:
Related Post
NGINX1.4.2+PHP5.5.3+MYSQL5.5.33NGINX1.4.2+PHP5.5.3+MYSQL5.5.33
LNMP 环境一键安装,使用方法: 执行此命令 wget http://my-lnmp-down.google […]