PDA

View Full Version : Cant connect and No log files???


direwolf
30-08-2002, 12:03
I have TS2 on my RedHat 7.2 gateway and I start it with this:


#! /bin/bash
# Copyright (c) 2002 TeamSpeak team All rights reserved.
#
# Author: Niels Werensteijn 2002
#

case "$1" in
start)
/server/websites/ghost-bear.net/tss2/server_linux -PID=tsserver2.pid
;;
stop)
kill -TERM `cat tsserver2.pid`
;;
restart)
echo Stopping TeamSpeak Server Daemon
# kill -TERM `cat /home/tss/tss2.pid`
killall -9 server_linux
;;
restart)
$0 stop && $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0


When I stop the server no Log file is created (I cant find admin password)???


Also what ports do I need open on my firewall as I can only connect using my internal LAN IP?

ScratchMonkey
01-09-2002, 00:00
NEVER NEVER NEVER use -9 with kill.

Well, almost never. :D

-9 kills a process dead right now with no chance for the process to do any cleanup. Most daemon processes, including tss2, expect to be killed with the -TERM signal, which they can catch so they can do cleanup. They then close their log files and, for tss2, their config files. If you use -9, they just die and any open files are lost.

So use something like this:

kill -TERM `cat $pidfile`

$pidfile is the shell variable that contains the name of the pidfile you passed to tss2 on the command line.

With the current Linux server, a zombie might be left behind, so 3-10 seconds later, issue your "killall -9" command to collect any orphaned zombies.