Running Multiple Servers

From Hopmod Wiki

Jump to: navigation, search

It's possible to run multiple game servers on the same host and IP address as long as each server uses a unique port number. A specific requirement for Hopmod is, each server needs to be run from a separate directory so configuration and log files don't conflict and so each server has a distinct script pipe. Fortunately, Hopmod comes with a copy script to make setting up a new server installation easy.

Contents

New installation

Run the script from an existing installation directory and specify the destination directory.

bin/newserver.sh DESTINATION

The script creates symlinks of the bin and script directory (and other installation generic directories) in the destination directory to the existing installation directory. The conf directory is copied, and isn't usable until after you've changed server.conf.

Checking your server configuration

You need to make sure your servers don't have conflicting port numbers. Be aware what port the game info service runs on, by default it's chosen as the game server port plus one.

serverport <unique-port-number>
script_socket_port <unique-port-number>

Running

cd to the new installation directory and do the usual activities

Troubleshooting

If you are getting this output from the server control script

servererror: could not create server host
Server shutting down.

then the configuration conflicts with another server's configuration.