PDA

View Full Version : What port does TSS use?


wildphil
24-06-2002, 00:55
Just need to know so I can let it thru my firewall.

If its running...

Im using Clark Connect 1.0 (http://www.clarkconnect.org)

Im a linux noob so bear with me (I have a roger wilco base station .. kindof running...)

Some questions:

Do i have to put stuff in or make a dir named:
/etc/init.d/tss/

I got these errors on startup:

[root@clarkconnect tss]# /etc/init.d/tss start
/etc/init.d/tss: /etc/rc.status: No such file or directory
/etc/init.d/tss: rc_reset: command not found
Starting TeamSpeak Server Daemon
/etc/init.d/tss: /home/tss/tss: No such file or directory
/etc/init.d/tss: rc_status: command not found


Because I dont know the port, I dont know if its acutally running or not.

I did this move as well: mv tss.SuSE_startscript /etc/init.d/tss

But couldnt do this move:
Move (and maybe edit) tss.ini to /etc/tss.ini

servo
24-06-2002, 01:42
You can configure it in you ini file for what port you want to listen on. It uses UDP and TCP so you will have to open both of them up. It seems to use your TCP port # plus 1 for UDP so if your Networking Statement in the ini files looks like the one below your TCP listen port is on 8000 and UDP is on 8001.

[Networking]
TCPPort=8000

I guess I should have read your whole posting with the error you have it is not running cause the error message file not found. IF it was running you could do a netstat -a and verify TCP and UDP are listening on the port you specified in your ini file.

Servo

wildphil
24-06-2002, 01:54
do i need to create the TSS directory in /etc/init.d/

?
then move that file there (rc.status)?

servo
24-06-2002, 02:05
What version are you using of TSS? What flavor of Linux are your using. I wrote my own startup script for TSS but when I run ./tss start by itself it comes right up on TCP 8765 and UDP 8766. I unzipped the tss files in /home/tss and I just type ./tss start it ran fine. Where are all your files at? Are they in one location or did you move them around?

Servo

wildphil
24-06-2002, 02:48
Originally posted by servo
What version are you using of TSS? What flavor of Linux are your using. I wrote my own startup script for TSS but when I run ./tss start by itself it comes right up on TCP 8765 and UDP 8766. I unzipped the tss files in /home/tss and I just type ./tss start it ran fine. Where are all your files at? Are they in one location or did you move them around?

Servo

Semi-followed the instructions given for a roger wilco base station.
http://www.numenor.demon.co.uk/ccfaq/servers.htm#RogerWilco

Clarkconnect is a linux based gateway, that is based on Red Hat 7.1

I kindof mixed up two diffrent instruction sets, the README that came with it, and that walkthru for a roger wilco base station (which works for RW)

Im a linux noob, learning as I go...

servo
24-06-2002, 03:06
The simple way to do this is take the original tarbal you download and put it in a directory. I put the tarbal inder /usr/local/games then I ran this command tar -xvzf filename. This untarred the contents and created a directory tss. Then just cd to the tss directory. Edit the ini file there and run this ./tss start and you are up in running. If your Linux doesnt allow the tar to use the -z switch then do gunzip filename then do tar -xvf filename and you are set. To verify it is running do a netstat -a -n |more and look for TCP 8765 and UDP 8766. If you see those you are up and running.

Servo

wildphil
24-06-2002, 04:27
Originally posted by servo
The simple way to do this is take the original tarbal you download and put it in a directory. I put the tarbal inder /usr/local/games then I ran this command tar -xvzf filename. This untarred the contents and created a directory tss. Then just cd to the tss directory. Edit the ini file there and run this ./tss start and you are up in running. If your Linux doesnt allow the tar to use the -z switch then do gunzip filename then do tar -xvf filename and you are set. To verify it is running do a netstat -a -n |more and look for TCP 8765 and UDP 8766. If you see those you are up and running.

Servo

Heh, stupid question....
How do I edit the ini file?

Most likely im going to do /usr/local/bin/ and after the unzip it will be /usr/local/bin/tss/

Would the ini file require the dirs its installed in?

Got it working! thanks!
Now for something hard... How do i get it to restart if:
A:Program crashes
B:Computer crash/power outage/reboot

Roger wilco works with a nohup command with a script, is it same way with this? could i possably edit the roger wilco script to make it work for this program?

servo
24-06-2002, 04:49
where ever you install it just do vi and the ini filename I believe the default is tsserver.ini. So just do vi tsserver.ini and being that you asked that question you probally aren't familiar with vi but once you are in it hit the letter i to insert text then escape to get out of edit mode and x to delete one character at a time and leter d twice to delete a line at a time once your are done with the file hit escape then :wq! and your set. Hope that helps


Servo

ScratchMonkey
24-06-2002, 07:04
Since Clarkconnect is based on Red Hat, try my RPM's, here:

ftp://ftp.matureasskickers.net/TeamSpeak/

wildphil
24-06-2002, 22:07
This is the roger wilco script to keep it running if it crashes.... will this edit work for TSS?

Also, How would I get TSS to run after a reboot without touching the server? (startup script...)


echo -n "Starting run_tss script at " > tss.log
date >> tss.log

# make sure it's not already running
killall -9 tss

while :
do
echo "Starting tss..." >> tss.log

# edit the following line to invoke tss with the parameters
# you want it to run under
./tss >>tss.log
echo -n "tss crashed at " >> tss.log
date >> tss.log
sleep 30
# make sure it's really 100% dead.
killall -9 tss
sleep 60
done
===========

and would i want to do a:
nohup ./run_tss &

EDIT: Tried the script and it didnt seem to work...
found the tss.minimal_startscript and used that (after putting the dirs in it) and its seemed to work fine, im not sure if its a "restart if program crashes" script or not...

Im still trying to figure out how to "restart program on computer reboot" (like putting something in the start folder in windows, tho linux isnt that friendly.... heh)

ScratchMonkey
26-06-2002, 03:53
Red Hat uses a "SysV" style initscript system to start services at boot time. When I needed to figure out how this worked, I started at "man init" and "man inittab", and followed the chain of scripts from there.

Briefly, inittab (the autoexec.bat of SysV init) runs the script /etc/rc.d/rc, passing it the runlevel as the argument. Common runlevels are 0 (shutdown), 3 (networked multiuser), and 5 (same a 3 but with an X server).

The rc script then runs all the "S" scripts in one of the /etc/rc.d/rcN.d subdirectories (replacing N with the runlevel), in numerical order. These are all symlinks to scripts in /etc/rc.d/init.d, and are run with the "start" parameter.

So to start TSS at boot time and stop it at shutdown, you need an initscript in /etc/rc.d/init.d named "tss" and a suitable symlink in /etc/rc.d/rc3.d/S99tss (starting) and /etc/rc.d/rc0.d/K00tss (shutting down).

Wrapping this all up, check out my own script here:

ftp://ftp.matureasskickers.net/TeamSpeak/tss-init

Copy this to /etc/rc.d/init.d/tss, and then run chkconfig ("man chkconfig") to add the symlinks.

Edit the paths in the script to reflect where you installed the tss binary and ini files and what user you want it to run as. (Note that the user must have write access to tsserver.ini.)

matt13
26-06-2002, 05:00
Whats you roger wilco base station thats kind of runnings ip??????