GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.25k stars 813 forks source link

[l4d1-server] Server wont be shut down by script #841

Closed derklompi closed 8 years ago

derklompi commented 8 years ago

Hi, with the newest script the l4d1-server wont be shut down (functions are updated). The output shows:

xxx@xxx:~/l4d_TZF-Apoc$ ./l4dserver stop
[  OK  ] Stopping tzfl4d: Graceful: rcon quit: 2: OK

Also the ./details command shows its offline. But the server stays online and the process isnt killed.

Distro: Ubuntu 15.10 x64

~Flam

UltimateByte commented 8 years ago

Thx for info. @dgibbs64 Any clue ? Didn't check rcon quit yet. Are those real rcon commands, or commands sent into the console ?

EDIT : Those are commands sent into the console. I'm not sure if we can call this rcon.

The stop function would need to be simplified btw. Incriminated function is here, but nothing seems wrong with it after a quick look : https://github.com/dgibbs64/linuxgsm/blob/master/lgsm/functions/command_stop.sh#L13

UltimateByte commented 8 years ago

@faflama This can happen if you got something written into the game console. Say you got oh i wanted to type a command but i didn't press enter , then when LGSM will input "quit", it's gonna send this to the server : oh i wanted to type a command but i didn't press enterquit And it will answer with something like unknown command "oh"

Could you please try to go into the console and manually input quit and see what happens ? That way we'd have a clue if it's a script issue or a L4D issue.

derklompi commented 8 years ago

I tried and got the following:

quit in console: Server shuts down (script recognizes the shutdown) quit over rcon: Server shuts down (script stil "thinks" its online)

EDIT: Going though the logs I found one time, where the "quit" had additional characters around it. But atm the "stop" is working, whoever knows why. I will test tomorrow again. ~Flam

derklompi commented 8 years ago

Got sick, so couldnt test. Will try to do today.

~Flam

derklompi commented 8 years ago

Checked again, works now. I the old logs, I only found one time, where sth else was in the same line as the "quit".

~Flam

UltimateByte commented 8 years ago

Well, i guess this is not a confirmed bug then. Re-open if you got some news about it :)

ssamjh commented 8 years ago

I am having this issue. It refuses to quit with rcon after about 20 seconds.

UltimateByte commented 8 years ago

@ssamjh More info, logs, useful stuff ?

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.