1WESNOTHD(6) Battle for Wesnoth multiplayer network daemon WESNOTHD(6)
2
3
4
6 wesnothd - Battle for Wesnoth multiplayer network daemon
7
9 wesnothd [-dv] [-c path] [-p port] [-t number] [-T number]
10 wesnothd -V
11
13 Manages Battle for Wesnoth multiplayer games. See https://www.wes‐
14 noth.org/wiki/ServerAdministration on what commands the server accepts
15 via the wesnoth client (/query ...) or the fifo.
16
18 -c path, --config path
19 tells wesnothd where to find the config file to use. See the
20 section SERVER CONFIG below for the syntax. You can reload the
21 config with sending SIGHUP to the server process.
22
23 -d, --daemon
24 runs wesnothd as a daemon.
25
26 -h, --help
27 tells you what the command line options do.
28
29 --log-level=domain1,domain2,...
30 sets the severity level of the log domains. all can be used to
31 match any log domain. Available levels: error, warn‐
32 ing, info, debug. By default the error level is used and the
33 info level for the server domain.
34
35 -p port, --port port
36 binds the server to the specified port. If no port is specified,
37 port 15000 will be used.
38
39 -t number, --threads number
40 sets the maximum number of waiting worker threads for network
41 I/O to n (default: 5, max: 30).
42
43 -T number, --max-threads number
44 sets the maximum number of worker threads that will be created.
45 If set to 0 there will be no limit (default: 0).
46
47 -V, --version
48 shows version number and exits.
49
50 -v, --verbose
51 turns debug logging on.
52
54 The general syntax is:
55 [tag]
56
57 key="value"
58
59 key="value,value,..."
60
61 [/tag]
62
63 Global keys:
64 allow_remote_shutdown
65 If set to no (default), shut_down and restart requests are ig‐
66 nored unless they come from the fifo. Set it to yes to allow
67 remote shutdown via a /query by an administrator.
68
69 ban_save_file
70 Full or relative path to a (gzip compressed) file that the
71 server can read and write. Bans will be saved to this file and
72 read again on server start.
73
74 compress_stored_rooms
75 Determines whether the rooms file should be read and written to
76 in compressed form. Defaults to yes.
77
78 connections_allowed
79 The number of allowed connections from the same IP. 0 means in‐
80 finite. (default: 5)
81
82 deny_unregistered_login
83 Whether to prevent users who are not registered with the
84 user_handler being used from logging in. (default: false)
85
86 disallow_names
87 Names/nicks that are not accepted by the server. * and ? from
88 wildcard patterns are supported. See glob(7) for more details.
89 Default values (used if nothing is specified) are: *ad‐
90 min*,*admln*,*server*,ai,ai?,computer,human,network,player.
91
92 fifo_path
93 The path to the fifo you can echo server commands into (same as
94 /query ... from wesnoth). If not specified defaults to the com‐
95 pile-time path (default: /var/run/wesnothd/socket).
96
97 max_messages
98 The number of allowed messages in messages_time_period. (de‐
99 fault: 4)
100
101 messages_time_period
102 The time period (in seconds) message flooding is detected in.
103 (default: 10 seconds)
104
105 motd The message of the day.
106
107 new_room_policy
108 Determines who can create new rooms on the server. Available
109 values are everyone, registered, admin and nobody, and give the
110 permission respectively to everyone, registered users, admin
111 users or disables new room creation. Default value is everyone.
112
113 passwd The password used to gain admin privileges (via /query admin
114 password).
115
116 replay_save_path
117 The directory where the server stores game replays. (Don't for‐
118 get the trailing /!) Defaults to `' which means the directory
119 wesnothd was started in.
120
121 restart_command
122 The command that the server uses to start a new server process
123 via the restart command. (Can only be issued via the fifo. See
124 the allow_remote_shutdown setting.)
125
126 room_save_file
127 Path to a file where the room info should be stored. This file
128 is read on server startup and written to later. If empty or not
129 set, rooms are not loaded and not saved.
130
131 save_replays
132 Defines whether the server will automatically save replays of
133 games. (default: false)
134
135 tls_enabled
136 Enable use of TLS. If true, requires 3 following options to be
137 set too.
138
139 tls_fullchain
140 TLS full certificate chain in .pem format
141
142 tls_private_key
143 private key for TLS in .pem format
144
145 tls_dh TLS DH parameters, as .pem file. Generate with openssl dhparam
146 -out filename.pem 4096
147
148 versions_accepted
149 A comma separated list of version strings to be accepted by the
150 server. * and ? from wildcard patterns are supported. (defaults
151 to the corresponding wesnoth version)
152 Example: versions_accepted="*" accepts any version string.
153
154 Global tags:
155 [redirect] A tag to specify a server to redirect certain client ver‐
156 sions to. Is not used if versions_accepted is not set.
157
158 host The address of the server to redirect to.
159
160 port The port to connect to.
161
162 version
163 A comma separated list of versions to redirect. Behaves
164 the same way as versions_accepted in regard to wildcard
165 patterns.
166
167 [ban_time] A tag to define convenient keywords for temporary ban time
168 lengths.
169
170 name The name used to reference the ban time.
171
172 time The time length definition. The format is:
173 %d[%s[%d%s[...]]] where %s is s (seconds), m (minutes), h
174 (hours), D (days), M (months) or Y (years) and %d is a
175 number. If no time modifier is given minutes (m) are as‐
176 sumed. Example: time="1D12h30m" results in a ban time of
177 1 day, 12 hours and 30 minutes.
178
179 [proxy] A tag to tell the server to act as a proxy and forward the con‐
180 nected client's requests to the specified server. Accepts the same
181 keys as [redirect].
182
183 [user_handler] Configures the user handler. If no [user_handler] sec‐
184 tion is present in the configuration the server will run without any
185 nick registration service. All additional tables that are needed for
186 the forum_user_handler to function can be found in table_defini‐
187 tions.sql in the Wesnoth source repository. Requires mysql support en‐
188 abled. For cmake this is ENABLE_MYSQL and for scons this is fo‐
189 rum_user_handler.
190
191 db_host
192 The hostname of the database server
193
194 db_name
195 The name of the database
196
197 db_user
198 The name of the user under which to log into the database
199
200 db_password
201 This user's password
202
203 db_users_table
204 The name of the table in which your phpbb forums saves
205 its user data. Most likely this will be <table-pre‐
206 fix>_users (e.g. phpbb3_users).
207
208 db_extra_table
209 The name of the table in which wesnothd will save its own
210 data about users.
211
212 db_game_info_table
213 The name of the table in which wesnothd will save its own
214 data about games.
215
216 db_game_player_info_table
217 The name of the table in which wesnothd will save its own
218 data about the players in a game.
219
220 db_game_modification_info_table
221 The name of the table in which wesnothd will save its own
222 data about the modifications used in a game.
223
224 db_user_group_table
225 The name of the table in which your phpbb forums saves
226 its user group data. Most likely this will be <table-pre‐
227 fix>_user_group (e.g. phpbb3_user_group).
228
229 mp_mod_group
230 The ID of the forum group to be considered as having mod‐
231 eration authority.
232
234 Normal exit status is 0 when the server was properly shutdown. An exit
235 status of 2 indicates an error with the command line options.
236
238 Written by David White <davidnwhite@verizon.net>. Edited by Nils Kneu‐
239 per <crazy-ivanovic@gmx.net>, ott <ott@gaon.net>, Soliton <soli‐
240 ton.de@gmail.com> and Thomas Baumhauer <thomas.baumhauer@gmail.com>.
241 This manual page was originally written by Cyril Bouthors
242 <cyril@bouthors.org>.
243 Visit the official homepage: https://www.wesnoth.org/
244
246 Copyright © 2003-2021 David White <davidnwhite@verizon.net>
247 This is Free Software; this software is licensed under the GPL version
248 2, as published by the Free Software Foundation. There is NO warranty;
249 not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
250
252 wesnoth(6)
253
254
255
256
257wesnothd 2021 WESNOTHD(6)