fhl-server-configs/README.md

43 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2023-11-18 17:53:08 +00:00
# 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
2023-11-19 00:21:51 +00:00
You can also run `sudo ./install-services.sh` to install the systemd service files.
2023-11-19 00:46:34 +00:00
**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`
2023-11-18 17:53:08 +00:00
From then on you can enable them all like this:
`./enable-services.sh`
...to restart/launch them:
`./restart-services.sh`
2023-11-19 00:21:51 +00:00
etc. - you will figure it out.
2023-11-19 01:23:03 +00:00
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