LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

Ark server shutdown error

Open spannerman79 opened this issue 9 years ago • 5 comments

lgsm/functions/command_stop.sh: line 275: [: missing ]'` When running ./arkserver stop

https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_stop.sh#L275

spannerman79 avatar Feb 24 '17 14:02 spannerman79

I can confirm.

skullmasher avatar Feb 24 '17 15:02 skullmasher

Easy fix with:

if [ "${pid}" -gt 1 ]&&[ "${pid}" -le "$(cat /proc/sys/kernel/pid_max)" ]; then

(and yes, i confirm the bug, thanks for reporting)

UltimateByte avatar Feb 24 '17 18:02 UltimateByte

can confirm, fix works. does look like graceful shutdown fails, but it should stop after...

EDIT: did a full restart of Ark server, let it run for a few min then stopped it. Had no issues with stopping. Even had the graceful stop... Good fix @UltimateByte thanks

Twonkk avatar Feb 25 '17 02:02 Twonkk

Yeah, during my testing, I noticed that you need to wait for the server to be (fully) started in order for it to stop clean and fast. Next release will fix this issue.

UltimateByte avatar Feb 25 '17 02:02 UltimateByte

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.

lock[bot] avatar Jul 18 '18 23:07 lock[bot]