Results 1 to 15 of 42
-
23-12-2009, 18:38 #1
-= TeamSpeak User =-
- 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
More info and link here: http://dominating.nl/?page_id=203Code:aria:/home/dedicated/ts3# ./ts3ss manage stop 2 Attempting to shutdown virtual server 2.
If you have any suggestions for improvements let me knowLast edited by dante696; 03-03-2011 at 09:24. Reason: url update
-
24-12-2009, 02:16 #2
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 5
Thanks for this nice script.

The status function is very neat. xD
-
24-12-2009, 15:40 #3
im using mysql, works the script with that?
-
24-12-2009, 15:41 #4
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Netherlands
- Posts
- 25
if you use the TS3 ini file it will
-
24-12-2009, 15:42 #5
so only start with ./script.sh start?
-
24-12-2009, 15:43 #6
-= TeamSpeak User =-
- 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
-
24-12-2009, 15:46 #7
ok ive started the server with ./start.sh start , but the server uses the sqlite file
ts3server.ini
ts3db_mysql.ini
exist
-
24-12-2009, 15:51 #8
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Netherlands
- Posts
- 25
gimme 5 mins and i will update the script.
-
24-12-2009, 15:52 #9
no prob.

i think u have to add commandline parameter inifile=ts3server.ini
-
24-12-2009, 16:01 #10
-= TeamSpeak User =-
- 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.
-
24-12-2009, 16:09 #11
impressive, thx

edit:
works absolutly fine
-
24-12-2009, 19:52 #12
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Netherlands
- Posts
- 25
thx, your welcome
-
27-12-2009, 19:13 #13
-= TeamSpeak User =-
- 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.
-
27-12-2009, 20:07 #14
-= TeamSpeak User =-
- 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.
-
27-12-2009, 20:44 #15
-= TeamSpeak User =-
- 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
-
start/stop script
By didle in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 31-07-2008, 15:42 -
using txpquery port for server start/stop script
By misterdanny in forum [TeamSpeak 2] Addons & ScriptsReplies: 7Last Post: 22-02-2007, 10:21 -
Script für Start/stop
By Sargera in forum [TeamSpeak 2] Server SupportReplies: 6Last Post: 04-02-2006, 12:18 -
start/stop script
By bootstrap in forum [TeamSpeak 2] General QuestionsReplies: 1Last Post: 08-04-2004, 23:29


Reply With Quote
