LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2008, 07:30 AM   #1
deus1
Member
 
Registered: Jan 2005
Distribution: Suse 9.1 pro
Posts: 35

Rep: Reputation: 15
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.
 
Old 04-04-2008, 01:28 PM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a command in an already-running screen session Wynd Linux - General 1 10-24-2007 04:10 PM
Creating a screen session in an existing session Frits of waterplant Linux - Newbie 4 01-18-2007 05:53 AM
Shared console session? ToBe Linux - General 5 04-11-2005 05:35 PM
running X in a screen session jumanji Linux - General 2 04-22-2004 02:57 PM
Running a command in a screen session ifan Linux - Newbie 0 07-16-2003 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration