====== doomsday-host ======
Command line utility for hosting dedicated servers. Starts a number of servers, monitors their status, restarts them if they crash, and maintains output log storage. Intended for automation.
===== Installation =====
Currently [[doomsday-host]] is not installed by default. You need to use ''CONFIG+=deng_host'' with [[qmake]] to include it in the build. The script will then be installed in the binary installation directory (where the **doomsday** executable is also located).
[[doomsday-host]] is intended to be run periodically from cron. You could for instance run it every minute or every five minutes.
===== .doomsdayhostrc =====
The configuration file **~/.doomsdayhostrc** defines what the script will actually do when run. See an example below with comments (in this example, ''PREFIX=/home/jaakko/usr'' is being used to allow cron to rebuild and install the engine).
/home/jaakko/usr/bin/doomsday-server
Location of the **doomsday-server** binary.
Command line options to use with all server instances.
master/home/jaakko/src/deng/doomsday-buildqmake -r ../doomsday/doomsday.pro PREFIX=/home/jaakko/usr
CONFIG+='debug deng_packres'
Rebuild settings. At the specified times, the script will pull new changes from the [[git_repository]], rebuild the engine, and install.
All of these servers are started in the background. If they crash, they get automatically restarted. You'll need to manually create the runtime directories.