Jedi Academy dedicated server for Debian ======================================== Running the server ------------------ Installing the openjk-academy-server package provides a dedicated server running as the user "openjk-academy-server", from an init script named openjk-academy-server. This is a simple setup suitable for running one server on a machine. By default, the server will use etc/openjk-academy-server/server.cfg, which is a symlink to /etc/openjk-academy-server/server.cfg. You can edit this file to reconfigure the default instance. The equivalent of ~/.local/share/openjk for the server is /var/games/openjk-academy-server/server/openjk. The server can be managed in the usual way, e.g. via service(8) commands like service openjk-academy-server stop service openjk-academy-server start update-rc.d openjk-academy-server disable update-rc.d openjk-academy-server enable which should work for all of systemd, sysvinit and upstart. The whole /etc/openjk-academy-server directory is symlinked into the engine's search path as etc/openjk-academy-server, so you can place files there and execute them with commands like "exec etc/openjk-academy-server/siege.cfg". Running multiple server instances with systemd ---------------------------------------------- Under systemd, openjk-academy-server supports additional instances of the server, for example for different game modes. Each instance openjk-academy-server@INSTANCE.service has configuration and state in /var/games/openjk-academy-server/INSTANCE/openjk, and will execute /etc/openjk-academy-server/INSTANCE.cfg on startup. To set a parameter that can only be given on the command line, such as fs_game or net_port, you can create /etc/default/openjk-academy-server@INSTANCE or a systemd "drop-in" file, and set DAEMON_OPTS there. Setting a unique net_port for each server is recommended: if you do not, each server will try ports above its configured net_port until it finds one that is not in use, so the mapping between servers and ports will be arbitrary. The instance name "server" cannot be used without disabling and stopping openjk-academy-server.service, since it shares its configuration with that service.