-   Linux - Server (
-   -   Running server in shared screen session (

deus1 04-04-2008 07:30 AM

Running server in shared screen session

On a server I've a couple of gameservers running, which are administrated by several admins. In order to start such a gameserver, the following command has to be executed (don't focus on the parameters):

screen -AmdS gameServer_Name ./srcds_run -game cstrike -console \
-autoupdate -pidfile ${SRDCS_PIDFILE} \
-tickrate 100 +maxplayers 24 +map de_dust2 \
-ip -port 27015

Problems with this approach are the following:

1. If admin A starts the server he'll be able to stop the server by calling this command:
screen -dr gameServer_Name -X quit
Unfortunately other admins won't be able to do this since they do not have access to the screen session where the server runs in. In fact, they can't see the session at all by calling screen -list

2. The server prints quite usefull information in the screen session which can be viewed by reattaching the server screen: screen -r gameServer_Name
Again, only the admin who started the server is able to reattach this screen session.

Has anyone a good idea how to solve this problem? All the admins have ssh access to the server and are part of the same admingroup. I prefer a quality and secure approach above a quick fix solution.

Btw, as far as I know, the gameserver software doesn't provide a solution to run the server in deamon mode or something like that.

p_s_shah 04-04-2008 01:28 PM

As far as I understand your problem,
1. Setup a single user account (e.g. gameadmin) which will run Shared screen mode for
starting/stoping/reatttching Game server.
2. All your admins should be login through their respective account.
3. Use sudo to change user account to gameadmin and do the necessary activity.
4. You can monitor activity using sudo logs.

Please reply back with your feedback, whether it worked or not.

All times are GMT -5. The time now is 09:36 AM.