Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    June 2006
    Location
    Germany
    Posts
    13

    [outdated] TS3 with mysql Startscript

    Edit by mod
    Please don't use this outdated script anymore! The script got an overhaul long time ago.
    Please use the minimal or startscript instead


    Aloha

    With this script you can start and stop your server.
    also you can use it for server autostart.

    Code:
    #!/bin/bash
    
    DIR="/etc/ts3_server"
    
    case "$1" in
        start)
    	cd ${DIR}
    	${DIR}/ts3server_linux_x86 dbplugin=ts3db_mysql
    	;;
        stop)
    	killall ts3server_linux_x86
    	;;
    *)
    	echo "Usage: 'basename $0' {start|stop}">&2
    	exit 42
    	;;
    esac
    
    exit 0
    Works for me @ Suse 10.2
    Last edited by florian_fr40; November 8th, 2011 at 03:58 PM.

  2. #2
    Join Date
    January 2004
    Posts
    21
    Thanks a lot.

  3. #3
    Join Date
    December 2009
    Location
    Netherlands
    Posts
    9
    Hey,

    I can't get it to auto start on boot (with MySQL working). I tried placing the following lines in /etc/crontab:

    Code:
    @reboot root /usr/local/lib/teamspeak3/ts3server_linux_x86 inifile=ts3server.ini
    @reboot root /usr/local/lib/teamspeak3/ts3server_linux_x86 inifile=ts3server.ini dbpluginparameter=ts3db_mysql.ini
    @reboot root /usr/local/lib/teamspeak3/ts3server_linux_x86 inifile=/usr/local/lib/teamspeak3/ts3server.ini
    @reboot root /usr/local/lib/teamspeak3/ts3server_linux_x86 inifile=/usr/local/lib/teamspeak3/ts3server.ini dbpluginparameter=/usr/local/lib/teamspeak3/ts3db_mysql.ini
    @reboot teamspeak3-server
    /usr/local/bin/teamspeak3-server
    Code:
    #!/bin/sh
    cd /usr/local/lib/teamspeak3
    #./ts3server_linux_x86 inifile=ts3server.ini dbpluginparameter=ts3db_mysql.ini
    #./ts3server_linux_x86 inifile=ts3server.ini dbpluginparameter=ts3db_mysql.ini
    ./ts3server_linux_x86 inifile=./ts3server.ini dbpluginparameter=./ts3db_mysql.ini
    Some of them boot the teamspeak server up, but according to the logs the server is always using the default parameters for the mysql server (wich doesn't work).

    I tried using your script, but i can't get it to work that way either (maybe i did something wrong).

    Any suggestions on how to get teamspeak to start at boot with a mysql database?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 106
    Last Post: January 26th, 2015, 02:40 PM
  2. [Resolved] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
    By Svenskunganka in forum Server Support
    Replies: 2
    Last Post: September 12th, 2013, 11:59 PM
  3. [outdated] Mysql access error
    By Ja IVI Es in forum Linux / FreeBSD
    Replies: 5
    Last Post: December 21st, 2009, 06:42 PM

Posting Permissions

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