Community Forums Today's Posts     Member List     Archive    
Page 1 of 3 123 LastLast
Results 1 to 15 of 42
  1. #1
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25

    Another start/stop script for linux32/64 - no screen, auto restart, update

    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


    Hey all,

    first of all nice new product. Installed this afternoon and loving it!

    I've modified one of my Unreal tournament 3 script to run with Teamspeak. This script can be added to your crontab with the status option to restart the server when it has crashed or so. Screen is not used

    Basic functions:
    # start, this starts the server in background
    # stop, this stops the running server
    # restart, this restarts the running server
    # check, this checks if the server is running and gives online or offline back
    # status, this checks if the server is running and if not restart the server
    # debug, this starts the server but wont background the process. All server output will be showed on screen.
    # update, updates your server on request (by r15ch13)

    Manage functions:
    # start serverid, start a virtual server
    # stop serverid, stops a virtual server
    # list, list all virtual servers with name, clients logged and max client.

    Code:
    aria:/home/dedicated/ts3# ./ts3ss manage list
    Retrieving virtual servers
    Virtual server id 1 Glowing\ Goat\ TS3 on port 9987 (0/500) online
    Virtual server id 2 new\ server on port 9988 (1/10) online
    Code:
    aria:/home/dedicated/ts3# ./ts3ss manage stop 2
    Attempting to shutdown virtual server 2.
    More info and link here: http://dominating.nl/?page_id=203

    If you have any suggestions for improvements let me know
    Last edited by dante696; 03-03-2011 at 09:24. Reason: url update

  2. #2
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    5
    Thanks for this nice script.
    The status function is very neat. xD

  3. #3
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    60
    im using mysql, works the script with that?

  4. #4
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25
    if you use the TS3 ini file it will

  5. #5
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    60
    so only start with ./script.sh start?

  6. #6
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25
    if you use this script all you do is ./ts3ss start

    you can use stop, debug (for onscreen display), restart, status (if down its started) and check

  7. #7
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    60
    ok ive started the server with ./start.sh start , but the server uses the sqlite file

    ts3server.ini
    ts3db_mysql.ini

    exist

  8. #8
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25
    gimme 5 mins and i will update the script.

  9. #9
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    60
    no prob.

    i think u have to add commandline parameter inifile=ts3server.ini

  10. #10
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25
    yup,

    its updated (refresh download if you get the old file). You got a new var called options. That can be any commandline argument that needs to be added on the ts3 exec.

  11. #11
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    60
    impressive, thx

    edit:
    works absolutly fine

  12. #12
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25
    thx, your welcome

  13. #13
    Join Date
    Dec 2009
    Location
    Neveda
    Posts
    23
    hi,

    nice script!

    How can i make it so that the "status" command can be used by a cron job.

    i want to have a cron job running every now and then, to check the status of the server and restart it.

  14. #14
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    25
    just add a line like this in your crontab:

    */10 * * * * user [ -x /your/path/to/ts3ss ] && /your/path/to/ts3ss status 1>>/var/log/ts3_status.log 2>&1

    This will check every 10 minuts and log something in /var/log/ts3_status.log. This file needs to be writable by the user given. If you dont want that just change it to /dev/null

    User needs be your user you use to run the service.

  15. #15
    Join Date
    Dec 2009
    Location
    Neveda
    Posts
    23
    thanks for the quick reply.

    im using a webhost for hosting TS, and i want to set up the cron through cpanel.

    I tried it through he optional unix style for entering crons, and it didnt work.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. start/stop script
    By didle in forum [TeamSpeak 2] Server Support
    Replies: 2
    Last Post: 31-07-2008, 15:42
  2. using txpquery port for server start/stop script
    By misterdanny in forum [TeamSpeak 2] Addons & Scripts
    Replies: 7
    Last Post: 22-02-2007, 10:21
  3. Script für Start/stop
    By Sargera in forum [TeamSpeak 2] Server Support
    Replies: 6
    Last Post: 04-02-2006, 12:18
  4. start/stop script
    By bootstrap in forum [TeamSpeak 2] General Questions
    Replies: 1
    Last Post: 08-04-2004, 23:29

Posting Permissions

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