GameServerManagers / LinuxGSM

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

[LGSM] fn_start (possibly others) fail when service name has single/double quotes #423

Closed zigbomb closed 9 years ago

zigbomb commented 9 years ago

pzserver is not part of the tty group.

    tty:x:5:

Run the following command with root privileges.

    usermod -G tty pzserver

After running command and attempt to start:

tmux error: usage: new-session [-AdDP] [-F format] [-n window-name] [-s session-name] [-t target-session] [-x width] [-y height] [command]

Scarsz commented 9 years ago

Can you give us the surrounding lines where the tmux error is when starting?

zigbomb commented 9 years ago

Elaborate?

./pzserver start : Tmux error:ting Zig's Zomboid Panic : Unable to start

Command

tmux new-session -d -s Zig's Zomboid Panic ./projectzomboid-dedi-server.sh

Error

usage: new-session [-AdDP] [-F format] [-n window-name] [-s session-name] [-t target-session] [-x width] [-y height] [command]

Fix

No known fix currently. Please log an issue. http://gameservermanagers.com/issues

zigbomb commented 9 years ago

It begins when ./pzserver start.

Scarsz commented 9 years ago

rm -rf functions; ./pzserver start

zigbomb commented 9 years ago

Still failed.

Scarsz commented 9 years ago

Error this time?

zigbomb commented 9 years ago

There wasn't an error, but it failed to start.

zigbomb commented 9 years ago

[ FAIL ] Starting Zig's Zomboid Panic : Unable to start

zigbomb commented 9 years ago

Now when I attempt to start it I get another error.

duplicate session: Zig's Zomboid Panic

Scarsz commented 9 years ago

rm -rf functions; ./pzserver stop

zigbomb commented 9 years ago

Uh, still getting an error regarding duplicate session: Zig's Zomboid Panic after using that command.

Scarsz commented 9 years ago

I must be blanking out on something.

Are there any sessions listed on tmux list-sessions? If so, kill them and try again

zigbomb commented 9 years ago

Do you have any other means of contact besides github itself?

Scarsz commented 9 years ago

You can add my Skype, yes. Check your email for an email from GitHub showing my username.

Scarsz commented 9 years ago

Problem is at line 117 of fn_start (https://github.com/dgibbs64/linuxgsm/blob/master/functions/fn_start#L117)

tmux new-session -d -s "Zig's Zomboid Panic " "./projectzomboid-dedi-server.sh " 2> "/home/pzserver/log/script/.Zig's Zomboid Panic -tmux-error.tmp"

"/home/pzserver/log/script/.Zig's Zomboid Panic -tmux-error.tmp"

Error occurs when a server's ${servicename} has (multiple?) non-escaped single (or double quotes)

dgibbs64 commented 9 years ago

Was this issue resolved? Can this be closed?

Scarsz commented 9 years ago

No

zigbomb commented 9 years ago

Solved. --[ Works ]--

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.