Forum

Results 1 to 7 of 7
  1. #1
    Join Date
    October 2018
    Posts
    3

    teamspeak disconnected after closing SHH window (Google Cluod Platform)

    Hi,
    my teamspeak server allways disconnected when I'm closing the SSH window.
    I'm ussing:
    - Google Cloud Platform (Compute Engine)
    - Ubuntu 18.04 LTS
    - teamspeak 3 server 3.4.0 (free 32 slots)

    Have installed:
    - auto restart when Google machine restarts (crontab -e):
    Code:
    @reboot cd teamspeak3-server_linux_amd64 ; ./ts3server_startscript.sh start
    - autorun when teamspeak shuts down (tscc.sh):
    Code:
    #!/bin/bash
    TEAMSPEAK=`ps ax | grep ts3server_linux_amd64 | grep -v grep | wc -l`
    if [ $TEAMSPEAK -eq 1 ]
    then
    exit
    else
    ./ts3server_startscript.sh start
    fi
    (crontab -e):
    Code:
    */3 * * * * cd teamspeak3-server_linux_amd64 ; ./tscc.sh
    Te both auto restarts works fine.
    But when teamspeak server starts with the tscc.sh than when I close the SSH window teamspeak shuts down (and restarts after the 3min).

    When I stop and start teamspeak in SSH manualy (./ts3server_startscript.sh start) than I can close the SSH window and teamspeak don't disconnect.

    What is wrong with the tscc.sh code?
    Can you help me?

  2. #2
    Join Date
    October 2018
    Posts
    3
    Anyone can help?

  3. #3
    Join Date
    September 2003
    Location
    France
    Posts
    37
    screen is your friend. (man screen)

  4. #4
    Join Date
    November 2018
    Posts
    4

    You could run it as a linux service like I did

    Edit by mod
    Following tutorial is dangerous and you should find another way.
    You never run software as root!



    Create and edit service file:
    Code:
    nano /etc/systemd/system/teamspeak.service
    Paste this then replace the user, group, and the path with your user and path.
    Code:
    [Unit]
    Description=TeamSpeak 3 Server
    After=network.target
    
    [Service]
    WorkingDirectory=/opt/teamspeak3-server/
    User=root
    Group=root
    Type=forking
    ExecStart=/opt/teamspeak3-server/ts3server_startscript.sh start inifile=ts3server.ini
    ExecStop=/opt/teamspeak3-server/ts3server_startscript.sh stop
    PIDFile=/opt/teamspeak3-server/ts3server.pid
    RestartSec=15
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    Enable the service to start at boot:
    Code:
    systemctl enable teamspeak.service
    Last edited by dante696; November 14th, 2018 at 07:36 AM.

  5. #5
    Join Date
    October 2018
    Posts
    3
    "No server running (ts3server.pid is missing)"
    This error when trying to stop/start/restart server with command: "./ts3server_startscript.sh start"

    But teamspeak server works.

  6. #6
    Join Date
    November 2018
    Posts
    4

    What is the executable named ?

    Replace the pid with the name of the executable .pid

  7. #7
    Join Date
    October 2014
    Posts
    29
    you can use tmux as well

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Teamspeak server setup install google cloud platform
    By razgrizdemon1 in forum Server Support
    Replies: 0
    Last Post: July 26th, 2017, 03:26 AM
  2. Teamspeak closing
    By lupine1990 in forum Windows
    Replies: 0
    Last Post: April 10th, 2014, 09:50 PM
  3. Teamspeak with google crome
    By Chris 385 in forum Windows
    Replies: 2
    Last Post: January 28th, 2014, 08:19 PM
  4. Teamspeak closing when connecting
    By r5peck in forum General Questions
    Replies: 3
    Last Post: January 9th, 2014, 06:03 PM
  5. TS client crashed after closing a message window
    By MasterDune in forum Bug Reports [EN/DE]
    Replies: 4
    Last Post: July 23rd, 2010, 10:02 AM

Tags for this Thread

Posting Permissions

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