View previous topic :: View next topic |
Author |
Message |
gh0std0g
|
Posted: Thu May 29, 2008 9:49 pm Post subject: Linux Screen support |
|
|
Hi. I'm running 5 Counter-strike Condition Zero servers on a Fedora Core 6 Box with gamecreate and i have set up "Require screen to ...." on the control panel.
Still the servers get launched the "regular" way instead of inside a screen session. I've even given the screen sessions simple names like server1, server2, etc...
Am i doing something wrong? Is it my linux distro?
I was really interested in having screen working since i've been having some problems with repeated server crashes and having screen would help me tack down what is going wrong.
Thanks in advance,
gD |
|
Back to top |
|
|
adbot
|
Posted: Thu Mar 31, 2011 3:57 am |
|
|
|
|
|
Steve Mammoth
|
Posted: Fri May 30, 2008 2:36 pm Post subject: |
|
|
Make sure you are running the latest version of GameCreate and, also make sure the screen process is being found. Check the failure logs to see. |
|
Back to top |
|
|
gh0std0g
|
Posted: Tue Jun 03, 2008 12:50 am Post subject: |
|
|
I am running the latest Gamecreate version and there's no mention of screen in the failure logs in either the host it self or any of the individual servers.
By the way, gamecreate seems to loose its connection to the EU master server about once an hour. Is this normal behaviour? |
|
Back to top |
|
|
Kybber
|
Posted: Tue Jun 03, 2008 6:44 am Post subject: |
|
|
Unfortunately, yes, that is normal. I get hundreds
of failure-mails per day. Don't see the point, really,
so I should just switch off the spam.
Regarding screen: I can confirm that it works nicely
on my boxes. They run gentoo, but it shouldn't matter,
as long as screen can be found by gc. Perhaps GC
searches a specific path instead of using the $PATH
environment variable? On my system, screen is
located here:
Code: | $ which screen
/usr/bin/screen |
Can you verify that is where the screen command
can be found on your host as well? |
|
Back to top |
|
|
gh0std0g
|
Posted: Tue Jun 10, 2008 12:01 am Post subject: |
|
|
Hi Kybber, thanks for your help. I'm sorry for the delay in replying but i was away last week.
Heres the output of the which screen command:
Code: | # which screen
/usr/bin/screen |
Its the same as yours so there is no apparent reason for it not to work. |
|
Back to top |
|
|
gp
|
Posted: Tue Jun 10, 2008 8:37 pm Post subject: |
|
|
I've got the same thing, screen is in the same place, can't see anything in the failure logs, still no screens |
|
Back to top |
|
|
Kybber
|
Posted: Thu Jun 12, 2008 10:47 pm Post subject: |
|
|
Did you also test that screen actually works? If so, then I am afraid I have no
idea what could be wrong. |
|
Back to top |
|
|
gp
|
Posted: Fri Jun 13, 2008 5:09 am Post subject: |
|
|
Yea, used to use screen all the time |
|
Back to top |
|
|
gh0std0g
|
Posted: Tue Jun 24, 2008 12:53 am Post subject: |
|
|
Screen does work on my system and the user running the GC Client is allowed to use it, so i too don't have the slightest clue as to why it isn't working.
Thank you for your help anyway Kybber. |
|
Back to top |
|
|
Kybber
|
Posted: Tue Jun 24, 2008 8:35 pm Post subject: |
|
|
One thing you could try is to run screen in detached mode instead of just
starting it in interactive mode. Try this:
screen -dmS toptest top
screen -r toptest
The first line will start a detached screen and run top inside it. The second
line will bring you into the created screen session. If it doesn't, or if you don't
see top running in the screen, then something is wrong.
Perhaps the GC devs could provide us with the exact command-line used to
launch a game through screen? Is it just screen -dm, or do you use other
command-line arguments? |
|
Back to top |
|
|
gh0std0g
|
Posted: Fri Jun 27, 2008 4:20 am Post subject: |
|
|
Nop m8.
Screen created the detached session, running top, just fine.
Maybe GC just has this problem with some linux distros.
Quote: | Perhaps the GC devs could provide us with the exact command-line used to launch a game through screen? Is it just screen -dm, or do you use other command-line arguments? |
Now that would be really nice. If the automated thingy doesn't work we could just tweak the command-line to our needs. |
|
Back to top |
|
|
gh0std0g
|
Posted: Thu Jul 10, 2008 4:12 am Post subject: |
|
|
Still no update on this matter?
Screen would be very helpful for debugging.
Cheers,
gd |
|
Back to top |
|
|
gp
|
Posted: Sun Jul 13, 2008 7:54 pm Post subject: |
|
|
I'm also having the same issues on FC |
|
Back to top |
|
|
Kybber
|
Posted: Tue Jul 15, 2008 9:55 am Post subject: |
|
|
I just thought of something: Do you guys have a
startup-message when running screen which says
something like "Press Space or Return to end." at
the bottom? If so, in case GC doesn't start the game
in detached mode, but instead starts the screen, and
*then* sends a command to the screen to start the
game, it could be that screen doesn't receive that
message since it is on the welcome screen.
Try this:
1. Type 'screen' to check if you get the welcome message.
If you don't then there is no need to continue testing -
my idea was wrong. If you do, then exit the screen
and continue with point 2.
2. Edit the file ~/.screenrc (create it if it doesn't
exist) and add the following line:
Code: | startup_message off |
3. Type 'screen' to verify that the welcome message
has indeed been switched off. Exit the screen.
4. If the welcome message was switched off, try to
start a game-server from GC with screen-support
enabled. |
|
Back to top |
|
|
gp
|
Posted: Tue Jul 15, 2008 4:43 pm Post subject: |
|
|
Kybber wrote: | I just thought of something: Do you guys have a
startup-message when running screen which says
something like "Press Space or Return to end." at
the bottom? If so, in case GC doesn't start the game
in detached mode, but instead starts the screen, and
*then* sends a command to the screen to start the
game, it could be that screen doesn't receive that
message since it is on the welcome screen.
Try this:
1. Type 'screen' to check if you get the welcome message.
If you don't then there is no need to continue testing -
my idea was wrong. If you do, then exit the screen
and continue with point 2.
2. Edit the file ~/.screenrc (create it if it doesn't
exist) and add the following line:
Code: | startup_message off |
3. Type 'screen' to verify that the welcome message
has indeed been switched off. Exit the screen.
4. If the welcome message was switched off, try to
start a game-server from GC with screen-support
enabled. |
Typing screen just attaches me to a screen displaying my home directory, no messages whatsoever
FC8 here. |
|
Back to top |
|
|
|