Community Forums Today's Posts     Member List     Archive    
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Location
    Oz
    Posts
    15

    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 11:07.

  2. #2
    Join Date
    Jun 2002
    Location
    Northern California
    Posts
    351
    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.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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