WESNOTHD(6)
π WESNOTHD β the Battle for Wesnoth multiplayer network daemon π
okay bestie, welcome to the manual page for wesnothd, straight out of section 6 of the manual. this is the daemon that runs all the multiplayer games. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
wesnothd β the Battle for Wesnoth multiplayer network daemon. that's it, that's the whole name. iconic. π
π SYNOPSIS π
wesnothd [-dvw] [-c path] [-p port]
wesnothd -V
look at her. two whole ways to launch her. main character energy fr fr π
π¦ DESCRIPTION π¦
she manages Battle for Wesnoth multiplayer games, periodt. π«Ά
if you wanna know what commands the server actually accepts β whether you're sliding them in via the wesnoth client with /query ... or through the fifo β you gotta go read https://www.wesnoth.org/wiki/ServerAdministration. that's the wiki, she's got the lore. β¨
π OPTIONS π
-cpath,--configpath β tellswesnothdwhere to find the config file she should use. the syntax lives down in the SERVER CONFIG section below, keep scrolling babe. and ooh, bonus: you can reload the config any time by sendingSIGHUPto the server process. hot. π₯-d,--daemonβ runswesnothdas a daemon.-h,--helpβ literally just tells you what the command line options do. help queen. π--log-level=domain1,domain2,...β sets the severity level of the log domains. you can useallto match, like, any log domain. the available levels are:error,warning,info,debug. by default theerrorlevel is used, and theinfolevel for the server domain. okay so she has preferences, respect them. π-pport,--portport β binds the server to the specified port. if no port is specified, port15000will be used. default slay. β-V,--versionβ shows the version number and exits. she's out, bye. π-v,--verboseβ turns debug logging on. she's gonna be so chatty and we love that for her. π
πΈ SERVER CONFIG πΈ
the general syntax is:
[tag]
key="value"
key="value,value,..."
[/tag]
tags in, tags out. the way that this is structured? immaculate. β¨
π Global keys π
allow_remote_shutdownβ if you set it tono(which is the default),shut_downandrestartrequests are ignored unless they come from the fifo. set it toyesto allow remote shutdown via a/queryby an administrator. yes this is a whole security vibe check, treat it like one. π¨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 when the server starts. she remembers everything, no cap. π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. the default values (used if nothing is specified) are:*admin*,*admln*,*moderator*,*server*,ai,ai?,computer,human,network,player. yes, theadmlntypo is in there, leave her alone, she's canon. πfifo_pathβ the path to the fifo you can echo server commands into (same as/query ...from wesnoth). if not specified it 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 this is themajor.minorversion of accepted clients, like1.16or1.17.max_messagesβ the number of allowed messages inmessages_time_period. (default:4)messages_time_periodβ the time period (in seconds) that message flooding is detected in. (default:10 seconds)motdβ the message of the day. say hi to everyone, it's polite. π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 therestartcommand. (can only be issued via the fifo. see theallow_remote_shutdownsetting.)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.pemformattls_private_keyβ private key for TLS in.pemformattls_dhβ TLS DH parameters, as.pemfile. generate withopenssl dhparam -out filename.pem 4096versions_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. wild. π
π Global tags π
[redirect]β a tag to specify a server to redirect certain client versions to. is not used ifversions_acceptedis 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 the additional tables that are needed for theforum_user_handlerto function can be found intable_definitions.sqlin the Wesnoth source repository. requires mysql support enabled. for cmake this isENABLE_MYSQLand for scons this isforum_user_handler.db_hostβ the hostname of the database serverdb_nameβ the name of the databasedb_userβ the name of the user under which to log into the databasedb_passwordβ this user's passworddb_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_content_info_tableβ the name of the table in whichwesnothdwill save its own data about game content (scenario/era/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_tournament_queryβ the SQL query to find tournaments to announce on login. should return tournament title, status and url.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.forum_admin_groupβ the ID of one of the forum groups to be considered as having admin authority on the add-ons server.site_admin_groupβ the ID of one of the forum groups to be considered as having admin authority on the add-ons server.
π§ 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. so if you see a 2, bestie, it's the command line, not her. π
π 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/ β go say hi, they're lovely. π«Ά
π COPYRIGHT π
Copyright Β© 2003-2025 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 and weep, but like, legally. π«‘
π₯ SEE ALSO π₯
and that's the whole page bestie!! this manual page for wesnothd is from 2022 and lives in section 6 of the manual, and honestly? she ate. πβ¨ go forth and host multiplayer games, you gorgeous nerd. π¦πΈ
π¦ where this page comes from
- fedora 43: wesnoth-data 1.19.16-1.fc43 Β· GPL-2.0-or-later
- fedora 43: wesnoth-data 1.19.24-1.fc43 Β· GPL-2.0-or-later
- fedora 44: wesnoth-data 1.19.21-1.fc44 Β· GPL-2.0-or-later
- fedora 44: wesnoth-data 1.19.24-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: wesnoth-devel 1.19.24
- nixpkgs unstable: wesnoth-devel 1.19.28
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms