Last active
December 16, 2016 06:08
-
-
Save Smallinger/60e455743b75cea0173104492655df69 to your computer and use it in GitHub Desktop.
Teamspeak 3 Server Debian Startup Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: teamspeak3 | |
# Required-Start: $local_fs $network | |
# Required-Stop: $local_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Teamspeak 3 Server | |
### END INIT INFO | |
# INIT Script by www.SysADMINsLife.com | |
###################################### | |
# Customize values for your needs: "User"; "DIR" | |
USER="teamspeak" | |
DIR="/home/teamspeak/teamspeak3_server" | |
###### Teamspeak 3 server start/stop script ###### | |
case "$1" in | |
start) | |
su $USER -c "${DIR}/ts3server_startscript.sh start" | |
;; | |
stop) | |
su $USER -c "${DIR}/ts3server_startscript.sh stop" | |
;; | |
restart) | |
su $USER -c "${DIR}/ts3server_startscript.sh restart" | |
;; | |
status) | |
su $USER -c "${DIR}/ts3server_startscript.sh status" | |
;; | |
*) | |
echo "Usage: {start|stop|restart|status}" >&2 | |
exit 1 | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment