Running server in shared screen session
Dear,
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 130.89.169.203 -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.
|