SRCDS Steam group


Best practices for hosting multiple servers
#16
U probably still have it linked to the shared content...

try
rm /home/user1/cstrike/*.txt
cp /home/srcds/cstrike/*.txt /home/user1/cstrike/
"the box said 'requires windows xp or better'. so i installed linux"
Linux Ubuntu 9.04 Server 2.6.30-vanilla #1 SMP PREEMPT x86_64
Reply
#17
Alright, I had to do a slight variation of that, but it worked.

You might want to include in your original guide that it is necessary to do this:

Code:
rm -f /home/user1/cstrike/*.txt

Because simply using rm will not delete the symbolic link, and cp -f will not delete the symbolic link either.
Reply
#18
no, i know. sry.
it wasn't meant as a guide.
more like a little help in the right direction, so you know how to build your own scripts. Wink

I myself have it in a complete batch script that also creates complete user accounts, srcds launch scripts etc.
So all this was the basic theory from that script.
"the box said 'requires windows xp or better'. so i installed linux"
Linux Ubuntu 9.04 Server 2.6.30-vanilla #1 SMP PREEMPT x86_64
Reply
#19
(08-25-2008, 06:56 AM)janne Wrote:  Create a user & folder for the shared content.
Code:
sudo useradd -d/home/srcds -m srcds
Make a default srcds installation in that folder as user srcds.
Also if you want put some extra maps and plugins you need to be common for all servers. (if so, don't to edit maplist.txt etc...)

Then create the first user
Code:
sudo useradd -d/home/user1 -m user1
and as root create symbolic links from srcds
Code:
sudo cp -s -R /home/srcds/* /home/user1/
and replace user editable files with a fresh copy of their own
Code:
sudo rm /home/user1/cstrike/cfg/*
sudo rm /home/user1/cstrike/*.txt
sudo rm /home/user1/cstrike/*.db
sudo cp /home/srcds/cstrike/cfg/* /home/user1/cstrike/cfg/
sudo cp /home/srcds/cstrike/*.txt /home/user1/cstrike/
sudo cp /home/srcds/cstrike/*.db /home/user1/cstrike/

and set proper permissions for directories
Code:
sudo find /home/user1/ -type d -exec chown user1.user1 {} \;
and files
Code:
sudo chown user1.user1 /home/user1/cstrike/cfg/*
sudo chown user1.user1 /home/user1/cstrike/*.txt
sudo chown user1.user1 /home/user1/cstrike/*.db

the add user1 to group srcds so it can read its files
Code:
sudo usermod -a -Gsrcds user1


Repeat the user process for more servers.

All updates will this way only be needed on the shared content.
All users can edit their own configs and install new maps and plugins which wasn't part of the shared content.


GL!

Is this still the recommended method of setting up multiple source servers sharing the same core install?
Reply
#20
Please open your own thread.
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)