{"action":"created","issue":{"url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/issues/1978","repository_url":"https://api.github.com/repos/GameServerManagers/LinuxGSM","labels_url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/issues/1978/labels{/name}","comments_url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/issues/1978/comments","events_url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/issues/1978/events","html_url":"https://github.com/GameServerManagers/LinuxGSM/issues/1978","id":347683615,"node_id":"MDU6SXNzdWUzNDc2ODM2MTU=","number":1978,"title":"ts3server restart with updateonstart=on causes him to stop after updating","user":{"login":"xopez","id":28950736,"node_id":"MDQ6VXNlcjI4OTUwNzM2","avatar_url":"https://avatars3.githubusercontent.com/u/28950736?v=4","gravatar_id":"","url":"https://api.github.com/users/xopez","html_url":"https://github.com/xopez","followers_url":"https://api.github.com/users/xopez/followers","following_url":"https://api.github.com/users/xopez/following{/other_user}","gists_url":"https://api.github.com/users/xopez/gists{/gist_id}","starred_url":"https://api.github.com/users/xopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xopez/subscriptions","organizations_url":"https://api.github.com/users/xopez/orgs","repos_url":"https://api.github.com/users/xopez/repos","events_url":"https://api.github.com/users/xopez/events{/privacy}","received_events_url":"https://api.github.com/users/xopez/received_events","type":"User","site_admin":false},"labels":[{"id":865961936,"node_id":"MDU6TGFiZWw4NjU5NjE5MzY=","url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/labels/Game:%20teamspeak%203","name":"Game: teamspeak 3","color":"000000","default":false},{"id":887572227,"node_id":"MDU6TGFiZWw4ODc1NzIyMjc=","url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/labels/Platform:%20LinuxGSM","name":"Platform: LinuxGSM","color":"000000","default":false},{"id":302777506,"node_id":"MDU6TGFiZWwzMDI3Nzc1MDY=","url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/labels/Status:%20dev%20queue","name":"Status: dev queue","color":"FBCA04","default":false},{"id":51384215,"node_id":"MDU6TGFiZWw1MTM4NDIxNQ==","url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/labels/Type:%20bug","name":"Type: bug","color":"d73a4a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-05T09:36:50Z","updated_at":"2018-08-28T17:59:37Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI found a little bug with the ts3server script. Don't know if this behaviour is wished, but we have to do a resart and after that a start which shouldn't be I think with ./ts3server restart.\r\n\r\n**Describe the bug**\r\nIf an update is found, it applies the update, starting the server and then instantly stops it. So you have to manually restart the server.\r\n\r\nSaw it today. From ts3server version 3.2.0 to 3.3.0 (Don't know if relevant).\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behaviour:\r\n1. Have an outdated teamspeakserver\r\n2. Set updateonstart to \"on\"\r\n3. make a restart, so you want him to autoupdate and to start\r\n4. See the update is working but not complete restart.\r\n\r\n**Expected behaviour**\r\nA clear and concise description of what you expected to happen.\r\n\r\n**Minimum Information**\r\nTeamSpeak 3 -> updated from 3.2.0 to 3.3.0\r\n````\r\nDistro Details\r\n=================================\r\nDistro:    Ubuntu 16.04.5 LTS\r\nArch:      x86_64\r\nKernel:    4.15.0-29-generic\r\nHostname:  mightful-noobs.de\r\ntmux:      tmux 2.1\r\nGLIBC:     2.23\r\n\r\nPerformance\r\nUptime:    12d, 21h, 56m\r\nAvg Load:  1.11, 0.98, 0.88\r\n\r\nMem:       total   used   free     cached   available\r\nPhysical:  15G     4.2G   434M     10G      10G\r\nSwap:      8.0G    189M   7.8G\r\n\r\nStorage\r\n=================================\r\nFilesystem:      /dev/md2\r\nTotal:           1008G\r\nUsed:            16G\r\nAvailable:       941G\r\nLinuxGSM Total:  153M\r\nServerfiles:     126M\r\n\r\nTeamSpeak 3 Server Details\r\n=================================\r\nServer name:  TeamSpeak 3 Server\r\nServer IP:    5.9.139.203:9987\r\ndbplugin:     ts3db_sqlite3\r\nStatus:       ONLINE\r\n\r\nts3server Script Details\r\n=================================\r\nService name:           ts3server\r\nts3server version:      180718\r\nUser:                   teamspeak\r\nDiscord alert:          off\r\nEmail alert:            off\r\nPushbullet alert:       off\r\nIFTTT alert:            off\r\nMailgun (email) alert:  off\r\nPushover alert:         off\r\nTelegram alert:         off\r\nUpdate on start:        on\r\nLocation:               /home/teamspeak\r\nConfig file:            /home/teamspeak/serverfiles/ts3server.ini\r\n\r\nBackups\r\n=================================\r\nNo Backups created\r\n\r\nPorts\r\n=================================\r\nChange ports by editing the parameters in:\r\n/home/teamspeak/serverfiles/ts3server.ini\r\n\r\nUseful port diagnostic command:\r\nnetstat -atunp | grep ts3server\r\n\r\nDESCRIPTION      DIRECTION  PORT   PROTOCOL\r\n> Voice          INBOUND    9987   udp\r\n> ServerQuery    INBOUND    10011  tcp\r\n> File transfer  INBOUND    30033  tcp\r\n\r\nStatus:\tONLINE\r\n````\r\nscriptog from update:\r\n```\r\nJul 23 13:33:06.587 ts3server: START: PASS: Started TeamSpeak 3 Server\r\nJul 23 13:33:06.589 ts3server: START: PASS: command_start.sh exiting with code: 0\r\nJul 28 23:15:02.503 ts3server: UPDATE LinuxGSM: INFO: Updating LinuxGSM\r\nJul 28 23:15:02.787 ts3server: UPDATE LinuxGSM: INFO: checking config _default.cfg: OK\r\nJul 28 23:15:03.016 ts3server: UPDATE LinuxGSM: INFO: checking linuxgsm.sh: OK\r\nJul 28 23:15:03.911 ts3server: UPDATE LinuxGSM: INFO: checking function check_deps.sh: UPDATE\r\nJul 28 23:15:04.080 ts3server: UPDATE LinuxGSM: PASS: Downloading check_deps.sh: OK\r\nJul 28 23:15:18.706 ts3server: UPDATE LinuxGSM: PASS: Updating functions\r\nJul 28 23:15:18.709 ts3server: PASS: core_getopt.sh exiting with code: 0\r\nAug 04 23:15:02.510 ts3server: UPDATE LinuxGSM: INFO: Updating LinuxGSM\r\nAug 04 23:15:02.782 ts3server: UPDATE LinuxGSM: INFO: checking config _default.cfg: OK\r\nAug 04 23:15:02.932 ts3server: UPDATE LinuxGSM: INFO: checking linuxgsm.sh: OK\r\nAug 04 23:15:19.094 ts3server: UPDATE LinuxGSM: PASS: Updating functions\r\nAug 04 23:15:19.097 ts3server: UPDATE LinuxGSM: PASS: command_update_linuxgsm.sh exiting with code: 0\r\nAug 05 11:21:10.132 ts3server: STOP: PASS: Stopped TeamSpeak 3 Server\r\nAug 05 11:21:13.316 ts3server: LOGS: INFO: Removing logs older than 7 days\r\n/home/teamspeak/log/script/ts3server-script-2018-07-17-15:00:39.log\r\n/home/teamspeak/log/script/ts3server-alert.log\r\n/home/teamspeak/log/script/ts3server-script-2018-07-20-14:30:16.log\r\n/home/teamspeak/log/script/ts3server-script-2018-07-20-08:20:17.log\r\n/home/teamspeak/log/script/ts3server-script-2018-07-23-13:32:56.log\r\n/home/teamspeak/log/script/ts3server-script-2018-07-19-10:56:55.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-17__13_00_48.898936_1.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-20__06_20_25.233177_0.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-20__12_30_26.181543_1.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-19__08_57_03.167147_1.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-17__13_00_48.898936_0.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-20__06_20_25.233177_1.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-19__08_57_03.167147_0.log\r\n/home/teamspeak/serverfiles/logs/ts3server_2018-07-20__12_30_26.181543_0.log\r\nAug 05 11:21:14.062 ts3server: LOGS: Removed 14 log files\r\nAug 05 11:21:15.063 ts3server: UPDATE: INFO: Checking for update: teamspeak.com\r\nAug 05 11:21:15.886 ts3server: UPDATE: PASS: Checking for update: teamspeak.com\r\nAug 05 11:21:20.402 ts3server: UPDATE: Update available\r\nAug 05 11:21:20.405 ts3server: UPDATE: Current build: 3.2.0\r\nAug 05 11:21:20.407 ts3server: UPDATE: Available build: 3.3.0\r\nAug 05 11:21:20.409 ts3server: UPDATE: 3.2.0 > 3.3.0\r\nAug 05 11:21:21.111 ts3server: UPDATE: PASS: Downloading teamspeak3-server_linux_amd64-3.3.0.tar.bz2: OK\r\nAug 05 11:21:22.048 ts3server: UPDATE: PASS: Extracting download: OK\r\nAug 05 11:21:22.049 ts3server: UPDATE: Copying to /home/teamspeak/serverfiles\r\nAug 05 11:21:25.452 ts3server: START: PASS: Started TeamSpeak 3 Server\r\nAug 05 11:21:28.637 ts3server: STOP: PASS: Stopped TeamSpeak 3 Server\r\nAug 05 11:21:28.666 ts3server: ALERT: INFO: Sending alert: Updated\r\nAug 05 11:21:29.076 ts3server: UPDATE: PASS: command_update.sh exiting with code: 0\r\nAug 05 11:21:33.608 ts3server: STOP: ERROR: TeamSpeak 3 Server is already stopped\r\nAug 05 11:21:36.045 ts3server: UPDATE: INFO: Checking for update: teamspeak.com\r\nAug 05 11:21:36.708 ts3server: UPDATE: PASS: Checking for update: teamspeak.com\r\nAug 05 11:21:37.718 ts3server: UPDATE: INFO: Current build: 3.3.0\r\nAug 05 11:21:37.720 ts3server: UPDATE: INFO: Available build: 3.3.0\r\n```\r\n\r\n\r\n**Additional context**\r\nFunctions are up2date cause I ran them every saturday night."},"comment":{"url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/issues/comments/416683004","html_url":"https://github.com/GameServerManagers/LinuxGSM/issues/1978#issuecomment-416683004","issue_url":"https://api.github.com/repos/GameServerManagers/LinuxGSM/issues/1978","id":416683004,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjY4MzAwNA==","user":{"login":"xopez","id":28950736,"node_id":"MDQ6VXNlcjI4OTUwNzM2","avatar_url":"https://avatars3.githubusercontent.com/u/28950736?v=4","gravatar_id":"","url":"https://api.github.com/users/xopez","html_url":"https://github.com/xopez","followers_url":"https://api.github.com/users/xopez/followers","following_url":"https://api.github.com/users/xopez/following{/other_user}","gists_url":"https://api.github.com/users/xopez/gists{/gist_id}","starred_url":"https://api.github.com/users/xopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xopez/subscriptions","organizations_url":"https://api.github.com/users/xopez/orgs","repos_url":"https://api.github.com/users/xopez/repos","events_url":"https://api.github.com/users/xopez/events{/privacy}","received_events_url":"https://api.github.com/users/xopez/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T17:59:37Z","updated_at":"2018-08-28T17:59:37Z","author_association":"NONE","body":"Don't know if you understand german and if it should discussed here, but that could be a lead.\r\nJust leave it here for you.\r\nhttp://krischan.eu/index.php/2013/06/04/howto-tsdns-startscript-autostartscript/\r\n\r\ntsdns_startscript.sh:\r\n```\r\n#!/bin/bash\r\n#\r\n# Copyright (c) TeamSpeak Systems GmbH. All rights reserved.\r\n#\r\n### BEGIN INIT INFO\r\n# Provides: tsdnsserver-linux-x86\r\n# Required-Start: $local_fs $network\r\n# Required-Stop: $local_fs $network\r\n# Default-Start: 2 3 4 5\r\n# Default-Stop: 0 1 6\r\n# Short-Description: TSDNS Server\r\n# Description: Resolves hostnames to IP and port numbers\r\n### END INIT INFO\r\n\r\n\r\nif [ -e \"tsdnsserver_linux_x86\" ]; then\r\nBINARYNAME=\"tsdnsserver_linux_x86\"\r\nelse\r\nBINARYNAME=\"tsdnsserver_linux_x86\" #für 64-Bit tsdnsserver_linux_amd64\r\n\r\n\r\nfi\r\n\r\n\r\nBINARYPATH=\"/dir/to/server/tsdns\" #richtiges Verzeichnis setzen\r\n\r\ncd \"${BINARYPATH}\"\r\nLIBRARYPATH=\"$(pwd)\"\r\n\r\n\r\ncase \"$1\" in\r\nstart)\r\nif [ -e tsdnsserver.pid ]; then\r\nif ( kill -0 $(cat tsdnsserver.pid) 2> /dev/null ); then\r\necho \"The server is already running, try restart or stop...\"\r\nexit 1\r\nelse\r\necho \"tsdnsserver.pid found, but no server running. Possibly your previously started server crashed...\"\r\necho \"Please view the logfile for details.\"\r\nrm tsdnsserver.pid\r\nfi\r\nfi\r\nif [ \"${UID}\" = \"0\" ]; then\r\necho \"WARNING: For security reasons we advise: DO NOT RUN THE SERVER AS ROOT!!!\"\r\nfor c in $(seq 1 10); do\r\necho -n \"!\"\r\nsleep 1\r\ndone\r\necho \"!\"\r\nfi\r\necho \"Starting the TSDNS Server.\"\r\nif [ -e \"$BINARYNAME\" ]; then\r\nif [ ! -x \"$BINARYNAME\" ]; then\r\necho \"${BINARYNAME} is not executable, trying to set it...\"\r\nchmod u+x \"${BINARYNAME}\"\r\nfi\r\nif [ -x \"$BINARYNAME\" ]; then\r\nexport LD_LIBRARY_PATH=\"${LIBRARYPATH}:${LD_LIBRARY_PATH}\"\r\n\"./${BINARYNAME}\" > /dev/null &\r\necho $! > tsdnsserver.pid\r\necho \"TSDNS Server started, for details please view the log file...\"\r\nelse\r\necho \"${BINARNAME} is not exectuable, cannot start TSDNS Server...\"\r\nfi\r\nelse\r\necho \"Could not find ${BINARYNAME}, aborting...\"\r\nexit 5\r\nfi\r\n;;\r\nstop)\r\nif [ -e tsdnsserver.pid ]; then\r\necho -n \"Stopping the TSDNS Server.\"\r\nif ( kill -TERM $(cat tsdnsserver.pid) 2> /dev/null ); then\r\nfor c in $(seq 1 300); do\r\nif ( kill -0 $(cat tsdnsserver.pid) 2> /dev/null ); then\r\necho -n \".\"\r\nsleep 1\r\nelse\r\nbreak\r\nfi\r\ndone\r\nfi\r\nif ( kill -0 $(cat tsdnsserver.pid) 2> /dev/null ); then\r\necho \"Server is not shutting down cleanly - killing...\"\r\nkill -KILL $(cat tsdnsserver.pid)\r\nelse\r\necho \"done\"\r\nfi\r\nrm tsdnsserver.pid\r\nelse\r\necho \"No server runing (tsdnsserver.pid is missing)...\"\r\nexit 7\r\nfi\r\n;;\r\nupdate)\r\nif [ -e tsdnsserver.pid ]; then\r\necho \"Updating the TSDNS Server.\"\r\nexport LD_LIBRARY_PATH=\"${LIBRARYPATH}:${LD_LIBRARY_PATH}\"\r\n\"./${BINARYNAME}\" --update > /dev/null &\r\necho \"TSDNS Server updated, for details please view the log file...\"\r\nelse\r\necho \"No server runing (tsdnsserver.pid is missing)...\"\r\nexit 7\r\nfi\r\n;;\r\nrestart)\r\n$0 stop && $0 start || exit 1\r\n;;\r\nstatus)\r\nif [ -e tsdnsserver.pid ]; then\r\nif ( kill -0 $(cat tsdnsserver.pid) 2> /dev/null ); then\r\necho \"Server is running.\"\r\nelse\r\necho \"Server seems to have died.\"\r\nfi\r\nelse\r\necho \"No server running (tsdnsserver.pid is missing)...\"\r\nfi\r\n;;\r\n*)\r\necho \"Usage: ${0} {start|stop|update|restart|status}\"\r\nexit 2\r\nesac\r\nexit 0\r\n```\r\n\r\nAutostartscript – tsdns\r\n\r\n```\r\n#!/bin/sh\r\n# chkconfig: 2345 99 01\r\n# description: Teamspeak 3 TSDNS-Server\r\n### BEGIN INIT INFO\r\n# Provides: teamspeak3dns\r\n# Required-Start: $all\r\n# Required-Stop:\r\n# Default-Start: 2 3 4 5\r\n# Default-Stop: 0 1 6\r\n# Description: Teamspeak 3 TSDNS-Server\r\n### END INIT INFO\r\n\r\nUSER=\"teamspeak\"\r\nDIR=\"/dir/to/Server\" # richtiges Verzeichnis setzen\r\n\r\n\r\n\r\ncase \"$1\" in\r\nstart)\r\nsu $USER -c \"${DIR}/tsdns/tsdns_startscript.sh start\"\r\n;;\r\nstop)\r\nsu $USER -c \"${DIR}/tsdns/tsdns_startscript.sh stop\"\r\n;;\r\nrestart)\r\nsu $USER -c \"${DIR}/tsdns/tsdns_startscript.sh restart\"\r\n;;\r\nstatus)\r\nsu $USER -c \"${DIR}/tsdns/tsdns_startscript.sh status\"\r\n;;\r\n*)\r\necho \"Benutze: `basename $0` {start|stop|restart|status}\" >&2\r\nexit 1\r\n;;\r\nesac\r\nexit 0\r\n```"}}
{"actor":{"display_login":"xopez"}}