Hi,
I've used: [url]https://gameservermanagers.com[/url] to install GMOD on my dedicated server. Now I want to install a second one. Just creating a new user and do all the steps again doesn't work, as it says that LinuxGSM is already running.
So what should I do here?
Thanks in advance!
Nice choice with LGSM. I only found about it recently and have so far seen no drawbacks. The wiki mentions two approaches you can use to host two servers on the same box:
[quote]Running several servers is pretty easy as long as you follow this guide. There is a couple ways to do it.
The first method: Make a new user, repeat the install process, configure the server to use different ports, enjoy. It's the best and easiest way to do. It will use more disk space, but will avoid several problems by making these servers totally independent.
The second method: Re-use an already existing server and make a new instance of it (of course with different ports). This is a bit more painful, a bit less reliable, and of course, those servers will share addons, databases and so on. The only thing you'll be able to customize from one server to another will eventually be the main config file, gamemode, and anything that you can configure in your "gameserver" script.
[/quote]
The full guide is [URL=https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers]here[/URL]. Make sure you also setup your crontab to both automatically start the server when the machine boots and restart it whenever it crashes. You can see my example crontab below that both reboots the server when the box powers up and checks to see that the server didn't crash (and restart it if it did) every 2 minutes:
[code]
@reboot ./gmodserver start
1-59/2 * * * * ./gmodserver monitor >/dev/null 2>&1
[/code]
I would honestly recommend hosting them manually and just using a batch script to auto restart them if they crash.
and just set them to two different ports and wola it works.
Sorry, you need to Log In to post a reply to this thread.