Server configs for the test servers we host
Go to file
Marco Cawthorne 268a56df5a
separate the service stuff into its own section
2023-11-18 17:24:31 -08:00
cstrike Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
dmc Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
gearbox Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
hunger Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
rewolf Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
scihunt Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
tfc Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
valve Using mp_timelimit/fraglimit in server configs messes with the alias, which gets executed first apparently. 2023-11-18 11:40:48 -08:00
README.md separate the service stuff into its own section 2023-11-18 17:24:31 -08:00
copy-cfgs.sh streamline cop-cfgs.sh and add motd.txt support 2023-11-18 10:22:21 -08:00
disable-services.sh Change the valve gamedir check a bit for compatibility (?) 2023-11-18 16:49:26 -08:00
enable-services.sh Change the valve gamedir check a bit for compatibility (?) 2023-11-18 16:49:26 -08:00
freehl.service Change to user service files 2023-11-18 16:14:06 -08:00
freehl@.service Change to user service files 2023-11-18 16:14:06 -08:00
install-services.sh Change to user service files 2023-11-18 16:14:06 -08:00
restart-services.sh Change the valve gamedir check a bit for compatibility (?) 2023-11-18 16:49:26 -08:00
stop-services.sh Change the valve gamedir check a bit for compatibility (?) 2023-11-18 16:49:26 -08:00

README.md

FreeHL Server Configs

Here's our systemd service files as well as the configs we run on our FreeHL test servers.

Clone this directory into the root of your dedicated server setup.

In case you need the dedicated server...

You can bootstrap a dedicated server with this gist:

https://code.idtech.space/eukara/gist/raw/branch/main/freehlded-bootstrap.sh

When you have the dedicated server files...

...and you cloned this repo into its own directory inside of it, e.g. configs/, simply run ./copy-cfgs.sh and it will copy the server.cfg files.

systemd services, the rundown

You can also run sudo ./install-services.sh to install the systemd service files. Do edit them first, they assume the dedicated server sits in ~/halflife. They'll be run in user mode. If you want them to keep running after logging out, enable lingering like so: sudo loginctl enable-linger username

From then on you can enable them all like this:

./enable-services.sh

...to restart/launch them:

./restart-services.sh

etc. - you will figure it out.

For a new mod to be recognized by the service scripts, you simply need to have a sub-directory with a server.cfg file and it'll assume you've got a mod directory set up within your installation.

If you're unfamilar with how systemd units work, this is how you host a new mod via a systemctl:

systemctl --user start freehl@moddir

Should be self explanatory? That's basically all those scripts do, iterate over the mod directories and run those commands over and over.

-- eukara