devryan/GamePanelX — Issue #7: Restart Button Errors
Author: 0x3g3n
Created: 2012-02-20 23:28:05+00:00
State: open

Figured i'd post here so you would see it faster :).

When in admin or client view, when you restart a server and it hasn't fully come up yet and sometimes while its even online it will begin to error when you hit restart again. Below is the error that comes up, it looks like its not syncing the PID in .gpxpid and .gpxrespid.

Server Restart Error: /home/gpanelusername/scripts/Stop: option requires an argument -- r success

When this happens, it also launches multiple processes which will eat up processor and memory.

Starting fresh..

[gpanelusername@CHI-03-07 1.1.1.1:21337]$ ps ux | grep 21337
65535 18074 0.0 0.0 61224 760 pts/0 S+ 18:23 0:00 grep 21337

Restart hit once..

[gpanelusername@CHI-03-07 1.1.1.1:21337]$ ps ux | grep 21337
65535 19843 0.0 0.0 63892 616 ? S 18:23 0:00 /bin/bash /home/gpanelusername/scripts/Restart -u andrew -t game -i 1.1.1.1 -p 21337 -w css -o ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 19849 0.0 0.0 64024 1260 ? S 18:23 0:00 /bin/sh ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 19857 11.8 0.6 72344 49412 ? S 18:23 0:00 /home/gpanelusername/accounts/andrew/game/1.1.1.1:21337/steam -command update -dir .. -game Counter-Strike Source
65535 20120 0.0 0.0 61228 764 pts/0 S+ 18:23 0:00 grep 21337

Server comes online.

Hit stop.

Hit restart
wait a moment
Hit restart again

End up with this..

[gpanelusername@CHI-03-07 1.1.1.1:21337]$ ps ux | grep 21337
65535 22159 0.0 0.0 63892 616 ? S 18:24 0:00 /bin/bash /home/gpanelusername/scripts/Restart -u andrew -t game -i 1.1.1.1 -p 21337 -w css -o ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 22165 0.0 0.0 64024 1256 ? S 18:24 0:00 /bin/sh ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 22400 0.0 0.0 63888 516 ? S 18:24 0:00 /bin/bash /home/gpanelusername/scripts/Restart -u andrew -t game -i 1.1.1.1 -p 21337 -w css -o ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 22493 0.0 0.0 14304 3176 ? Sl 18:24 0:00 ./srcds_linux +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 22610 0.0 0.0 61228 768 pts/0 S+ 18:24 0:00 grep 21337

Hit stop..

[gpanelusername@CHI-03-07 1.1.1.1:21337]$ ps ux | grep 21337
65535 3051 0.0 0.0 61224 752 pts/0 S+ 18:28 0:00 grep 21337
65535 22159 0.0 0.0 63896 708 ? S 18:24 0:00 /bin/bash /home/gpanelusername/scripts/Restart -u andrew -t game -i 1.1.1.1 -p 21337 -w css -o ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 29720 0.0 0.0 64024 1260 ? S 18:26 0:00 /bin/sh ./srcds_run +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2
65535 30048 1.3 0.8 192000 66380 ? Sl 18:26 0:01 ./srcds_linux +fps_max 500 -autoupdate -tickrate 100 -game cstrike +ip 1.1.1.1 +port 21337 +maxplayers 12 +map de_dust2

Still end up with a process running the game, and no way to stop it via the panel. I've had people end up with 5-6 processes.