Created
November 3, 2015 19:47
-
-
Save nimble-123/e154fee1ea7ee8c36f0f to your computer and use it in GitHub Desktop.
Teamspeak 3 Server Daemon
This file contains hidden or 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" > /etc/init.d/teamspeak | |
### BEGIN INIT INFO | |
# Provides: ts3 | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: TeamSpeak3 Server Daemon | |
# Description: Starts/Stops/Restarts the TeamSpeak Server Daemon | |
### END INIT INFO | |
set -e | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
DESC="TeamSpeak3 Server" | |
NAME=teamspeak3-server | |
USER=teamspeak | |
DIR=/opt/teamspeak3-server | |
DAEMON=$DIR/ts3server_startscript.sh | |
#PIDFILE=/var/run/$NAME.pid | |
SCRIPTNAME=/etc/init.d/$NAME | |
# Gracefully exit if the package has been removed. | |
test -x $DAEMON || exit 0 | |
sleep 2 | |
sudo -u $USER $DAEMON $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment