wesnothd - Man Page
Battle for Wesnoth multiplayer network daemon
Synopsis
Description
Manages Battle for Wesnoth multiplayer games. See https://www.wesnoth.org/wiki/ServerAdministration on what commands the server accepts via the wesnoth client (/query ...) or the fifo.
Options
- -c path, --config path
tells wesnothd where to find the config file to use. See the section Server Config below for the syntax. You can reload the config with sending SIGHUP to the server process.
- -d, --daemon
runs wesnothd as a daemon.
- -h, --help
tells you what the command line options do.
- --log-level=domain1,domain2,...
sets the severity level of the log domains. all can be used to match any log domain. Available levels: error, warning, info, debug. By default the error level is used and the info level for the server domain.
- -p port, --port port
binds the server to the specified port. If no port is specified, port 15000 will be used.
- -V, --version
shows version number and exits.
- -v, --verbose
turns debug logging on.
Server Config
The general syntax is
[tag]
key="value"
key="value,value,..."
[/tag]
Global keys
- allow_remote_shutdown
If set to no (default), shut_down and restart requests are ignored unless they come from the fifo. Set it to yes to allow remote shutdown via a /query by an administrator.
- ban_save_file
Full or relative path to a (gzip compressed) file that the server can read and write. Bans will be saved to this file and read again on server start.
- connections_allowed
The number of allowed connections from the same IP. 0 means infinite. (default: 5)
- deny_unregistered_login
Whether to prevent users who are not registered with the user_handler being used from logging in. (default: false)
- disallow_names
Names/nicks that are not accepted by the server. * and ? from wildcard patterns are supported. See glob(7) for more details. Default values (used if nothing is specified) are: *admin*,*admln*,*moderator*,*server*,ai,ai?,computer,human,network,player.
- fifo_path
The path to the fifo you can echo server commands into (same as /query ... from wesnoth). If not specified defaults to the compile-time path (default: /var/run/wesnothd/socket).
- id
The ID of the server when using the database functionality to store game information. Generally is the major.minor version of accepted clients, such as 1.16 or 1.17.
- max_messages
The number of allowed messages in messages_time_period. (default: 4)
- messages_time_period
The time period (in seconds) message flooding is detected in. (default: 10 seconds)
- motd
The message of the day.
- passwd
The password used to gain admin privileges (via /query admin password).
- replay_save_path
The directory where the server stores game replays. (Don't forget the trailing /!) Defaults to `' which means the directory wesnothd was started in.
- restart_command
The command that the server uses to start a new server process via the restart command. (Can only be issued via the fifo. See the allow_remote_shutdown setting.)
- save_replays
Defines whether the server will automatically save replays of games. (default: false)
- tls_enabled
Enable use of TLS. If true, requires 3 following options to be set too.
- tls_fullchain
TLS full certificate chain in .pem format
- tls_private_key
private key for TLS in .pem format
- tls_dh
TLS DH parameters, as .pem file. Generate with openssl dhparam -out filename.pem 4096
- versions_accepted
A comma separated list of version strings to be accepted by the server. * and ? from wildcard patterns are supported. (defaults to the corresponding wesnoth version)
Example: versions_accepted="*" accepts any version string.
Exit Status
Normal exit status is 0 when the server was properly shutdown. An exit status of 2 indicates an error with the command line options.
Author
Written by David White <davidnwhite@verizon.net>. Edited by Nils Kneuper <crazy-ivanovic@gmx.net>, ott <ott@gaon.net>, Soliton <soliton.de@gmail.com> and Thomas Baumhauer <thomas.baumhauer@gmail.com>. This manual page was originally written by Cyril Bouthors <cyril@bouthors.org>.
Visit the official homepage: https://www.wesnoth.org/
Copyright
Copyright © 2003-2024 David White <davidnwhite@verizon.net>
This is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.