Skip to content

Configure DayZ server messages and restart announcements

By

Updated

Configure welcome text, recurring announcements or a shutdown countdown in the mission’s db/messages.xml. Enter its times in minutes. If you enable termination, arrange the subsequent start through your panel or process supervisor.

Find the mission your server loads and check its existing schedules. Save a copy of db/messages.xml, registered message extensions and cfgeconomycore.xml. Review VXPanel’s restart schedules before adding another way to stop the server.

Send one-off announcements through RCON. The main game configuration also supports motd[] with motdInterval in seconds. Follow the documented controls for your service: a TCAdmin plugin’s messages.cfg belongs to that provider’s implementation.

For native chat messages, edit motd[] and motdInterval in the file selected by -config. With the process stopped, replace their existing assignments or add them once if absent, outside class Missions:

motd[] = {
"Welcome to our DayZ server.",
"Read the rules before joining a group."
};
motdInterval = 5;

Keep the square brackets in motd[], quote each message, separate messages with a comma and close the array with };. This example uses five seconds between messages, following Bohemia’s native MOTD syntax and units.

Save and restart the test instance, then join and check both chat messages and the delay between them. If they repeat unexpectedly, compare this array with messages.xml and mod announcements. Restore the saved assignments to undo the change. Use the XML procedure below when you need its connection, repetition or shutdown controls.

Get db/messages.xml from the selected mission. When the file exists, add these two <message> entries within its current <messages> root, leaving the other entries intact. If the file is missing, save the complete document at that path:

<?xml version="1.0" encoding="UTF-8"?>
<messages>
<message>
<delay>1</delay>
<repeat>0</repeat>
<deadline>0</deadline>
<onConnect>1</onConnect>
<shutdown>0</shutdown>
<text>Welcome to #name. Please read the server rules.</text>
</message>
<message>
<delay>0</delay>
<repeat>30</repeat>
<deadline>0</deadline>
<onConnect>0</onConnect>
<shutdown>0</shutdown>
<text>Keep a recovery copy before editing server files.</text>
</message>
</messages>

The welcome text appears one minute after joining. The other entry repeats at 30-minute intervals, with shutdown disabled in both entries. Use the onConnect spelling in Bohemia’s message example, limit each text to 160 characters and encode an & as &amp; where required by XML.

Validate the complete XML file, then upload it while the server is stopped. Start a private test session and join to check the welcome text and recurring announcement. Record what appears and when. If a message is missing, inspect the new session logs.

Choose which system will stop the server before enabling a native countdown. Set its deadline in minutes and shutdown to 1 to stop the process when the countdown ends. For a server-wide countdown, leave repeat and onConnect at 0. The text can use #tmin for the remaining minutes.

Set a four-hour session deadline to 240. This is elapsed session time; it does not select a wall-clock appointment. The game’s documented thresholds determine warning times. Compare the deadline with host schedules instead of expecting a broadcast during every minute of the session.

Bohemia lists warnings at 90, 60, 45, 30, 20, 15, 10, 5, 2 and 1 minutes remaining. With a 240-minute deadline, the 90-minute warning falls 150 minutes after session start; the last warning falls at minute 239. Use #name for the server name, #port for its port and #tmin for remaining minutes in countdown text. These are the native message placeholders and thresholds, separate from a panel’s notification template.

If the process stops earlier than expected, compare the native deadline with restart schedules, update actions and health handling. A native shutdown doesn’t by itself schedule a new start.

Try the countdown and recovery on a disposable private instance. Confirm that the process stops, the supervisor starts it again and the expected saved state loads before using the schedule for players. If your host already handles restarts, keep that workflow and leave termination disabled in additional announcements.

Relaunch a self-managed Linux server after the countdown

Section titled “Relaunch a self-managed Linux server after the countdown”

Use this example on a Linux host you administer, with an existing vanilla installation that already starts and accepts a player. It assumes the non-root account dayz owns /home/dayz/servers/dayz-server. Substitute your account, paths and tested launch arguments. If a service already manages DayZ, back up and adapt that service instead of creating a second one. VXPanel users should keep the panel’s restart schedule.

While DayZ is stopped, add this entry once inside the active mission’s existing <messages> root. Preserve the other messages and remove any conflicting shutdown countdown. The example gives each session four hours:

<message>
<delay>0</delay>
<repeat>0</repeat>
<deadline>240</deadline>
<onConnect>0</onConnect>
<shutdown>1</shutdown>
<text>#name will restart in #tmin minutes.</text>
</message>

Validate the complete XML. For a new service, save the following as /etc/systemd/system/dayz-server.service using your host’s administrator account. Keep User=dayz; Bohemia’s Linux hosting instructions require running the game without root privileges.

[Unit]
Description=DayZ dedicated server
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=3
[Service]
Type=exec
User=dayz
WorkingDirectory=/home/dayz/servers/dayz-server
ExecStart=/home/dayz/servers/dayz-server/DayZServer -config=serverDZ.cfg -port=2302 -profiles=profiles -dologs -adminlog
Restart=on-success
RestartSec=15s
KillSignal=SIGINT
TimeoutStopSec=infinity
[Install]
WantedBy=multi-user.target

Restart=on-success relaunches after a clean exit, with a 15-second pause. An abnormal exit stays stopped for inspection. on-failure would miss a clean countdown shutdown. An explicit systemctl stop keeps the service stopped. These are systemd restart rules, so confirm that your installed DayZ build exits cleanly during the rehearsal below.

KillSignal=SIGINT selects the stop signal used in Bohemia’s example. TimeoutStopSec=infinity disables the stop timeout; a hung shutdown needs an administrator rather than a timed forced kill. Inspect the journal and process before editing files or starting another copy. See systemd’s stop-signal behavior.

The start limit allows three starts within 300 seconds, preventing repeated immediate exits from becoming a rapid loop. If that limit is reached, fix the cause before using sudo systemctl reset-failed dayz-server.service and starting again.

For the rehearsal, set a 10-minute deadline on the private instance and validate its XML. Run the first command below on its own and resolve any unit-verification errors before continuing with the remaining commands:

Terminal window
sudo systemd-analyze verify /etc/systemd/system/dayz-server.service
sudo systemctl daemon-reload
sudo systemctl start dayz-server.service
sudo systemctl status dayz-server.service --no-pager
sudo journalctl -u dayz-server.service -n 100 --no-pager

Join, watch the countdown, then check the journal for a clean exit and a new process. Rejoin and confirm the expected character and saved world. A running service alone doesn’t establish that players can connect or that the save is intact. Stop the test, restore the intended 240-minute deadline, and repeat the XML check. Enable boot startup only after these checks pass, using sudo systemctl enable dayz-server.service.

Before manual maintenance, warn players through your usual announcement method, then run sudo systemctl stop dayz-server.service and wait for the process to exit. That command does not send the native countdown. To undo this setup, keep the service stopped, disable it if you enabled boot startup, and restore the saved message file and previous service or launcher. Reload systemd after restoring a unit; start only one copy.

This example restarts the installed game; it does not update its files. Follow the update procedure separately. The XML and unit settings were checked against documentation on 8 October 2026; the DayZ exit status, Linux service and saved-world recovery have not been tested here.

Symptom Check
The message appears twice Compare original and registered entries with native MOTD and mod broadcasts.
It never appears Confirm the mission, parsed XML, spelling, connection flag and time elapsed.
Shutdown happens at an unexpected time Review the deadline alongside host schedules and administration tools.
XML fails after adding a URL Inspect ampersand escaping and the opening and closing text tags.
Scroll to see all columns →

An extension registered with type="messages" adds entries to the original file. To replace a message, edit or remove its original entry; registering another copy cannot override it. See Bohemia’s economy merge rules.

Stop the process for rollback and restore the saved registrations and message files. Confirm which system owns shutdown before starting again.

Display announcements with the Notifications mod

Section titled “Display announcements with the Notifications mod”

Notifications, item 2353998362, is the package by DaemonForge and BRITTO. It requires CF. Use the client/server installation and signing-key steps, loading the dependency first. Address CF’s first-installation requirement before adding it to an existing world. VPPNotifications and NotificationsSystem are different packages with different instructions.

Keep your current scheduler responsible for message timing and restarts. Notifications changes how messages appear to players; installing it doesn’t create a restart schedule. Its author describes a BattlEye message bridge controlled by EnableBattlEye, with StopSpam for repeated messages and BattlEyeKeywords for matching text. The published example recognizes Restart, Shutdown and [N], removing a leading [N] from the displayed message. Use the installed package’s configuration instructions; the author page doesn’t identify the configuration file’s location.

After installation on a private test instance, send one short [N] announcement through your existing RCON message sender. Check it on a normal player’s client, then repeat it to check duplicate handling. If the banner appears without sound, inspect the client’s sound toggle; the author’s default key is ]. Keep the original message settings saved so you can restore them if the new display conflicts with another UI mod.

For a scripted welcome, the author’s June 2021 correction uses InvokeOnConnect, preserves super.InvokeOnConnect(player, identity) and passes the joining player’s identity to NotificationSystem.SimpleNoticiation. That method’s unusual spelling is intentional. Check the current mission and package before adapting the dated example; adding another connection hook can conflict with one already present. Test with two players to confirm the welcome reaches only the person joining. Keep a copy of init.c before any script edit.

Send a scripted welcome with VPPNotifications

Section titled “Send a scripted welcome with VPPNotifications”

DaOne’s VPPNotifications, item 1680673106, displays messages sent by server scripts to one player or everyone. It uses g_Game.SendMessage; the Notifications package above uses a different API. Installing a display framework doesn’t schedule messages or restarts.

Check whether your server already uses VPPAdminTools. Its bundled notification code includes a compatibility version of SendMessage, guarded by VPPNOTIFICATIONS so it can defer to the standalone package. Follow the requirements of the actual mod that needs notifications before adding or removing either package. VPPNotifications’ July 2020 notes say it no longer requires CF; that doesn’t remove CF from VPPAdminTools or another mod that needs it.

For the standalone package, follow the client/server installation and signing-key steps. Use the supplied key and matching client files. Back up the active mission’s init.c before changing its scripts.

The author provides a welcome example in InvokeOnConnect. In the mission’s existing CustomMission class, merge the message into that method while retaining super.InvokeOnConnect(player, identity) and any other connection logic. If the method is absent, this example shows the complete override to add inside the class:

override void
InvokeOnConnect(
PlayerBase player,
PlayerIdentity identity
)
{
super.InvokeOnConnect(
player, identity
);
if (!identity) return;
g_Game.SendMessage(
false,
identity,
"Welcome",
"Read our rules.",
10, 2,
false, true,
"", 0, 0
);
}

Keep one override. The identity check prevents a personal message from being sent with a missing recipient. The first argument, false, selects the named player; the author’s global form uses true and NULL. An empty image string requests a text-only message. Keep images out of the first test so a missing client texture can’t obscure a message-delivery problem.

Check the API against the installed package before relying on optional effects. In the pinned VPPAdminTools wrapper, the two Boolean effect arguments are marked unused. The older standalone description gives them queue and fade meanings; the two implementations aren’t proof of identical behavior.

Restart the test server and inspect its script log. Join with two ordinary player accounts: only the joining player should receive the personal welcome. Reconnect, respawn and send an existing restart announcement to check for duplicate hooks or broadcasts. If compilation or delivery fails, restore the saved init.c and previous package list, then confirm the original announcements still work.

SchanaModGlobalChat, item 2115602332, is deprecated. Its author directs owners to Carim, item 3468061029. The old listing also requires Carim, so inspect your installed mod list before adding another entry. Keep the old list and configuration for recovery while trying the replacement on a separate server copy.

Carim includes global chat, autorun, compass, map, nametags and parties. Its configuration source enables all six modules by default. If you only want global chat, explicitly disable the other features rather than assuming this is a chat-only package.

  1. Install the matching Carim package on the test server and joining clients using the normal mod and signing-key procedure. Check any package that still depends on the old Schana item before removing the old item from your collection or startup list.
  2. Back up the active serverDZ.cfg and mission’s cfggameplay.json. Review the existing gameplay settings before enabling that file: the switch activates the file’s other settings too. Set enableCfgGameplayFile = 1; once in serverDZ.cfg.
  3. Merge the CarimData property below at the top level of your existing cfggameplay.json, alongside GeneralData and PlayerData. Keep those existing properties and the file’s version. If CarimData already exists, edit its module settings instead of adding a duplicate property.

This is an example of the Carim property to merge, not a replacement for the mission’s complete file. It keeps chat enabled and disables the other five modules:

{
"CarimData": {
"CarimChatData": {
"enabled": true
},
"CarimAutorunData": {
"enabled": false
},
"CarimCompassData": {
"enabled": false
},
"CarimMapData": {
"enabled": false
},
"CarimNametagData": {
"enabled": false
},
"CarimPartyData": {
"enabled": false
}
}
}

The author’s installation instructions allow omitted values to retain their defaults. Preserve any existing Carim settings you intend to keep. Validate the finished JSON locally, transfer it while the server is stopped, then restart the test instance and read its logs.

Join with two players. The documented default key is Z for switching between global and direct chat; check the channel indicator before sending. Test both channels at different distances, reconnect and check again. Use [ and ] to adjust chat size, or change the bindings if another mod uses them.

If BEC or another admin tool rejects the chat prefix as a non-ASCII character, the README identifies ᐅ as the character to allow. Preserve the rest of your character policy; don’t disable filtering to diagnose one rejected prefix. Check restart announcements and the Notifications display separately so you can spot missing or duplicated messages. Restore the saved mod list and both configuration files if the migration fails.

This guide used AI-assisted research and drafting. Verification on 3 October 2026 covered the example’s XML, flags, units and text lengths. It did not include a live announcement, timed shutdown or supervisor recovery.

The Notifications section was added on 6 October after reading the original description, all six change entries and the pinned welcome discussion. Its latest listed update is 29 August 2023. Current package configuration, compiled scripts, client display and message delivery remain unverified; the dated author example is not a current compatibility test.

The Schana/Carim section was added on 6 October after reading both original descriptions, Schana’s latest ten of 21 change entries, Carim’s complete README and installation file, and seven source files at revision 1e2409fa76be030f0d146fffc2f32d34a9c710d1. The JSON example was parsed locally. The current Workshop binary hasn’t been matched to that revision, and player chat, BEC handling, migration and recovery remain untested here.

VPPNotifications’ description and all eleven change entries were reviewed on 7 October 2026, alongside eight complete files from the VPPAdminTools revision linked above. The standalone package’s latest listed update targets DayZ 1.17, dated 19 April 2022. The script example has not been compiled or tested in DayZ; current binary matching, recipient handling, client display and recovery remain unverified.

On 8 October, the native warning thresholds and #port placeholder were checked against Bohemia’s message reference. The four-hour example’s elapsed times were calculated from those thresholds; no timed broadcast or shutdown was run.

The native MOTD example was added with AI assistance on 8 October after checking Bohemia’s CFG example and seconds-based interval. Its assignments and rendered code were checked locally; chat delivery and timing remain untested in game.

DayZ hosting for your community.

Review DayZ plans with VxShield DDoS protection and no added player-slot fee.