WESNOTHD(6)
π NAME π
wesnothd β the Battle for Wesnoth multiplayer network daemon. That's the whole vibe. Section 6 of the manual, games wing, main character energy, no cap. π
β¨ SYNOPSIS β¨
wesnothd [-dv] [-c path] [-p port] [-t number] [-T number]
wesnothd -V
π¦ DESCRIPTION π¦
Okay so, wesnothd runs and manages Battle for Wesnoth multiplayer games. That's it, that's the job. π
Wanna know what commands the server actually accepts β like from the wesnoth client via /query ..., or through the fifo? Bestie, go read https://www.wesnoth.org/wiki/ServerAdministration. It's all there. π
π OPTIONS π
-c path,--config pathβ tellswesnothdwhere to find the config file to use. The syntax lives down in SERVER CONFIG, keep scrolling. Also: you can reload the config by sendingSIGHUPto the server process. Hot. π₯-d,--daemonβ runswesnothdas a daemon.-h,--helpβ tells you what the command line options do. (Iconic behaviour honestly.)--log-level=domain1,domain2,...β sets the severity level of the log domains. You can useallto match any log domain. Available levels:error,warning,info,debug. By default theerrorlevel is used, and theinfolevel for the server domain. πͺ΅-p port,--port portβ binds the server to the specified port. If you don't specify one, port15000will be used. She has a default and she's sticking to it. π-t number,--threads numberβ sets the maximum number of waiting worker threads for network I/O to n (default:5, max:30).-T number,--max-threads numberβ sets the maximum number of worker threads that will be created. If you set it to0there will be no limit (default:0). Unhinged. I respect it. π«Ά-V,--versionβ shows version number and exits. Slay, show and go. β¨-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 tono(the default),shut_downandrestartrequests are ignored unless they come from the fifo. Set it toyesto allow remote shutdown via a/queryby an administrator. β οΈ Yes that's the dangerous one, be normal about it.ban_save_fileβ full or relative path to a (gzip compressed) file that the server can read and write. Bans get saved to this file and read again on server start.compress_stored_roomsβ determines whether the rooms file should be read and written to in compressed form. Defaults toyes.connections_allowedβ the number of allowed connections from the same IP.0means infinite. (default:5)deny_unregistered_loginβ whether to prevent users who are not registered with theuser_handlerbeing used from logging in. (default:false)disallow_namesβ names/nicks that are not accepted by the server.*and?from wildcard patterns are supported. Seeglob(7)for more details. Default values (used if nothing is specified) are:*admin*,*admln*,*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).max_messagesβ the number of allowed messages inmessages_time_period. (default:4)messages_time_periodβ the time period (in seconds) message flooding is detected in. (default:10seconds)motdβ the message of the day. π£new_room_policyβ determines who can create new rooms on the server. Available values areeveryone,registered,adminandnobody, and they give the permission respectively to everyone, registered users, admin users, or disable new room creation entirely. Default value iseveryone.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 directorywesnothdwas 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 theallow_remote_shutdownsetting.)room_save_fileβ path to a file where the room info should be stored. This file is read on server startup and written to later. If empty or not set, rooms are not loaded and not saved.save_replaysβ defines whether the server will automatically save replays of games. (default:false)tls_enabledβ enable use of TLS. Iftrue, requires 3 following options to be set too.tls_fullchainβ TLS full certificate chain in.pemformat.tls_private_keyβ private key for TLS in.pemformat.tls_dhβ TLS DH parameters, as.pemfile. Generate withopenssl 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.idβ the ID of the server when using the database functionality to store game information. Generally is themajor.minorversion of accepted clients, such as1.16or1.17.
Global tags:
[redirect]
A tag to specify a server to redirect certain client versions to. Is not used if versions_accepted is not set.
hostβ the address of the server to redirect to.portβ the port to connect to.versionβ a comma separated list of versions to redirect. Behaves the same way asversions_acceptedin regard to wildcard patterns.
[ban_time]
A tag to define convenient keywords for temporary ban time lengths. π«
nameβ the name used to reference the ban time.timeβ the time length definition. The format is:%d[%s[%d%s[...]]]where%siss(seconds),m(minutes),h(hours),D(days),M(months) orY(years) and%dis a number. If no time modifier is given, minutes (m) are assumed. Example:time="1D12h30m"results in a ban time of 1 day, 12 hours and 30 minutes.
[proxy]
A tag to tell the server to act as a proxy and forward the connected client's requests to the specified server. Accepts the same keys as [redirect].
[user_handler]
Configures the user handler. If no [user_handler] section is present in the configuration, the server will run without any nick registration service. All additional tables that are needed for the forum_user_handler to function can be found in table_definitions.sql in the Wesnoth source repository. Requires mysql support enabled. For cmake this is ENABLE_MYSQL and for scons this is forum_user_handler.
db_hostβ the hostname of the database server.db_nameβ the name of the database.db_userβ the name of the user under which to log into the database.db_passwordβ this user's password.db_users_tableβ the name of the table in which your phpbb forum saves its user data. Most likely this will be<table-prefix>_users(e.g.phpbb3_users).db_extra_tableβ the name of the table in whichwesnothdwill save its own data about users.db_game_info_tableβ the name of the table in whichwesnothdwill save its own data about games.db_game_player_info_tableβ the name of the table in whichwesnothdwill save its own data about the players in a game.db_game_modification_info_tableβ the name of the table in whichwesnothdwill save its own data about the modifications used in a game.db_user_group_tableβ the name of the table in which your phpbb forum saves its user group data. Most likely this will be<table-prefix>_user_group(e.g.phpbb3_user_group).db_connection_history_tableβ the name of the table in which to store login/logout times. Also used for matching IPs to users and vice versa.db_topics_tableβ the name of the table in which your phpbb forum saves its topic (thread) information. Most likely this will be<table-prefix>_topics(e.g.phpbb3_topics).db_banlist_tableβ the name of the table in which your phpbb forum saves its user bans data. Most likely this will be<table-prefix>_banlist(e.g.phpbb3_banlist).mp_mod_groupβ the ID of the forum group to be considered as having moderation authority.
π 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. That's it, those are the two moods. π
π«Ά 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. (Read it again, bestie. NO warranty. None. Zero. Periodt. π )
β SEE ALSO β
And that's the whole page, gorgeous. β¨ This little masterpiece is from the wesnothd manual, version 2022, dated 2022 β so go forth, run your server, and remember: exit status 0 is the goal, exit status 2 means the command line options ate. πΈπ Byeee!
π¦ where this page comes from
- debian trixie: wesnoth-1.18-server 1:1.18.5-1 Β· GPL-2.0-or-later
- ubuntu questing: wesnoth-1.18-server 1:1.18.5-1build2
- ubuntu resolute: wesnoth-1.18-server 1:1.18.7-1 Β· GPL-2.0-or-later
- ubuntu stonking: wesnoth-1.18-server 1:1.18.8-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms