Fixes #1154#1156
Fixes #1154#1156CasperAlant wants to merge 2 commits intoGameServerManagers:developmentfrom CasperAlant:patch-1
Conversation
|
This looks like a function has just been removed. There needs to also be a method for confirming that the user is not trying to use screen either. |
Tmux also sets $TERM = "screen" which is why I removed it. This way tests for a screen session while still avoiding the issue in #1154. http://serverfault.com/questions/257975/how-to-check-if-im-in-screen-session
|
Better :p (watch out i edited) Edit2: Well nope, my bad, STY stands for screen, right ? |
|
${TMUX} is unset after logging in to the lgsm account. That is not what caused the problem. The problem was that ${TERM} gets set to "screen" (both tmux and screen do this) and stays that way even after logging into the lgsm account. By simply checking for a screen session using the ${STY} variable, my problem is solved. |
|
Well, checking ${STY} seems like a good option at first glance then. :) |
|
As per the screen manual, ${STY} holds information about the screen window manager or the "Alternate socket name." Screen checks it when a new screen is created and will make a new window instead of a nested screen if it is set. |
|
I'll patch it using the new branch, no worries :) |
* Two # is now one block of settings & descriptions * directories comments and logs naming * dgibbs revision and root check * Backup & Layout rework * removed duplicate updateonstart * Fixed missing space on [ERROR ] [ ERROR ] instead of [ERROR ] * Error space wasn't missing Used to fit other comment sizes, i guess * Anonymous login is now an info Since login variable is removed for servers that don't need steam auth, this won't show a failure anymore but a simple info and anonymous login will be used. * update_steamcmd.sh Check is now done out of functions * solves hanging on update if steamuser is not set * New gameserver layout & functionalities * Better way to detect screen As per #1154 and #1156 * Moved to LinuxGSM-DevTools https://github.com/GameServerManagers/LinuxGSM-DevTools/blob/master/GameServer-Template/gameserver
* If there are backups in backup dir. Fixes #1140 * mainly improves logging #1098 * Better logging, output & compatibility #1098 * fn_check_cfgdir for Rust fixes #1141 * fn_set_config_vars is not for every game removing some games i know don't use it * Install config if missing fixes #1142 * Clear more logs #1137 * Putting all this into functions & prepare noprompt * noprompt & shutdownonbackup #1098 * fix syntax & messages #1098 * messages that make more sense #1098 * New backup vars # Backup maxbackups="4" maxbackupdays="30" stoponbackup="on" * Should fix missing cached mem #1143 * fix the fix for #1143 (close double quote) * move -type f before -mtime * New gameservers & features (#1158) * Two # is now one block of settings & descriptions * directories comments and logs naming * dgibbs revision and root check * update_steamcmd.sh Check is now done out of functions * Better way to detect screen #1154 and #1156 * Backup function improvements (#1161) * Added no of days since last backup * Added lock file creation to logs * Improvements up command_backup.sh Changes to the messages displayed on screen added trap and improved lockfile support renamed some functions other misc changes * Updated Version numbers
|
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. |
Users are prevented from starting an LGSM server within a tmux session, unless the session was started by another user.