Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 4 of 4
  1. #1
    Join Date
    January 2004
    Location
    wa au immer
    Posts
    20

    [HOWTO] TS3 Daemon (Startscript)

    Hey,

    1.) install screen
    2.) copy startscript in your daemon folder or everywhere
    3.) modify path of your teamspeak install folder
    4.) see ./pathtostartscript/startscript for all available options

    Code:
    #!/bin/bash
    PATH=/bin:/usr/bin:/sbin:/usr/sbin
    
    
        DIR=~/ts3_beta
        DAEMON=ts3server_linux_amd64
        NAME=TS3TestServer
        OPTION="dbplugin=ts3db_mysql"
    
        case "$1" in
        start)
           echo "Starting: $NAME"
           if [ -e $DIR ];
           then
            cd $DIR
           screen -d -m -S $NAME ./$DAEMON $OPTION
           else echo "No such directory: $DIR!"
           fi
           ;;
    
        stop)
           if [ "$(screen -ls | grep $NAME)" ];
           then
               echo -n "Stopping: $NAME"
               kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
               echo " ... done."
           else
               echo "Coulnd't find a running $DESC"
           fi
           ;;
    
        restart)
           if [ "$(screen -ls | grep $NAME)" ];
           then
               echo -n "Stopping: $NAME"
               kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
               echo " ... done."
           else
               echo "Coulnd't find a running $DESC"
           fi
           
           echo -n "Starting: $NAME"
           cd $DIR
           screen -A -m -d -S $NAME ./$DAEMON $PARAMS $OPTION
           echo " ... done."
           ;;
    
        status)
           screen -ls | grep -wq "$NAME" && echo "$NAME is UP" || echo "$NAME is DOWN"
           ;;
    
        *)
           echo "Usage: $0 {start|stop|status|restart}"
           exit 1
           ;;
        esac
    
        exit 0

  2. #2
    Join Date
    June 2007
    Location
    in a house.
    Posts
    98
    oh please.
    not again a startscript....
    there already enough good startscripts posted here what NOT useing screen....

  3. #3
    Join Date
    January 2004
    Location
    wa au immer
    Posts
    20
    sry, I hadn't see it -.-

  4. #4
    Join Date
    December 2009
    Location
    Germany, Essen
    Posts
    17
    Thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •