English   German
  #1  
Old 30-08-2002, 12:03
direwolf's Avatar
direwolf direwolf is offline
-= TeamSpeak User =-
 
Join Date: Aug 2002
Location: Oz
Posts: 15
direwolf is on a distinguished road
Cant connect and No log files???

I have TS2 on my RedHat 7.2 gateway and I start it with this:

PHP Code:
#! /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 
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?

Last edited by direwolf; 30-08-2002 at 12:07.
Reply With Quote
  #2  
Old 01-09-2002, 00:00
ScratchMonkey ScratchMonkey is offline
-= TeamSpeak Addict =-
 
Join Date: Jun 2002
Location: Northern California
Posts: 350
ScratchMonkey is on a distinguished road
NEVER NEVER NEVER use -9 with kill.

Well, almost never.

-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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:23.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices