{"id":18703,"date":"2026-03-26T14:14:01","date_gmt":"2026-03-26T14:14:01","guid":{"rendered":"https:\/\/ggservers.com\/knowledgebase\/?post_type=ht_kb&#038;p=18703"},"modified":"2026-03-26T14:15:42","modified_gmt":"2026-03-26T14:15:42","slug":"how-to-automatically-restart-a-dayz-server-with-a-shutdown-message","status":"publish","type":"ht_kb","link":"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-automatically-restart-a-dayz-server-with-a-shutdown-message\/","title":{"rendered":"How to automatically restart a DayZ server with a shutdown message."},"content":{"rendered":"\n<p><strong>Running a DayZ server<\/strong> is no small task, and nothing disrupts a session quite like an unexpected crash or a sudden, unannounced restart.<\/p>\n\n\n\n<p>Whether you&#8217;re managing a small private server for friends or hosting a busy public community, keeping players informed before a restart is the difference between a smooth experience and a flood of frustrated messages in your Discord.<\/p>\n\n\n\n<p>In this guide, we&#8217;ll walk you through how to set up an automated restart schedule for your DayZ server, complete with an in-game shutdown message so your players always get a heads-up before the server goes down.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Access the Panel<\/h3>\n\n\n\n<p>Log in to your <a href=\"https:\/\/panel.ggservers.com\/\">GGServers Control Panel<\/a>. Here you will be able to manage anything related to your server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Stop the Server<\/h3>\n\n\n\n<p>To safely modify any configuration options, add mods or any task similar to that, the server will have to be stopped to prevent any issues from taking place.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"405\" height=\"111\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_1.png\" alt=\"\" class=\"wp-image-18705\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_1.png 405w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_1-300x82.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_1-50x14.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_1-60x16.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_1-100x27.png 100w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Edit the messages.xml file<\/h3>\n\n\n\n<p>To do this, please go to your File Manager and navigate to mpmissions\\&lt;missionnamehere>\\db and edit the messages.xml file. If it doesn&#8217;t exist, you can manually create it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"395\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-1024x395.png\" alt=\"\" class=\"wp-image-18706\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-1024x395.png 1024w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-300x116.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-768x296.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-50x19.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-1536x592.png 1536w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-60x23.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2-100x39.png 100w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_2.png 2044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Edit the file to your liking<\/h3>\n\n\n\n<p>Each message fires based on its <code>&lt;deadline&gt;<\/code> value, which is measured in seconds. The server works through them in descending order \u2014 the highest deadline fires first, counting down until the next one takes over.<\/p>\n\n\n\n<p>Once the final message&#8217;s deadline expires and <code>&lt;shutdown&gt;<\/code> is set to <code>1<\/code>, the server restarts. So in the example above, the sequence looks like this:<\/p>\n\n\n\n<p><strong>1800<\/strong> (30 min) \u2192 First warning, no shutdown<\/p>\n\n\n\n<p><strong>600<\/strong> (10 min) \u2192 Second warning, no shutdown<\/p>\n\n\n\n<p><strong>1800<\/strong> (30 min) \u2192 First warning, no shutdown<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n&lt;messages>\n    &lt;message>\n        &lt;delay>0&lt;\/delay>\n        &lt;repeat>0&lt;\/repeat>\n        &lt;deadline>1800&lt;\/deadline>\n        &lt;onConnect>0&lt;\/onConnect>\n        &lt;shutdown>0&lt;\/shutdown>\n        &lt;text>Heads up, #name will restart in 30 minutes.&lt;\/text>\n    &lt;\/message>\n\n    &lt;message>\n        &lt;delay>0&lt;\/delay>\n        &lt;repeat>0&lt;\/repeat>\n        &lt;deadline>600&lt;\/deadline>\n        &lt;onConnect>0&lt;\/onConnect>\n        &lt;shutdown>0&lt;\/shutdown>\n        &lt;text>Warning, #name will restart in 10 minutes.&lt;\/text>\n    &lt;\/message>\n\n    &lt;message>\n        &lt;delay>0&lt;\/delay>\n        &lt;repeat>0&lt;\/repeat>\n        &lt;deadline>300&lt;\/deadline>\n        &lt;onConnect>0&lt;\/onConnect>\n        &lt;shutdown>1&lt;\/shutdown>\n        &lt;text>Final warning, #name is restarting in 5 minutes. Please find safety!&lt;\/text>\n    &lt;\/message>\n&lt;\/messages><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Save the file and then restart the server<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"345\" height=\"78\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_3.png\" alt=\"\" class=\"wp-image-18707\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_3.png 345w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_3-300x68.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_3-50x11.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_3-60x14.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2026\/03\/Screenshot_3-100x23.png 100w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/figure>\n\n\n\n<p>Done, your server should now have automatic restarts with scheduled messages to make your players aware.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\"><strong>If you are experiencing any issues or if you need assistance with anything else, please contact us at our <\/strong><a href=\"https:\/\/ggservers.com\/billing\/submitticket.php\">Support Portal<\/a><strong>. We are available 24\/7 to help!<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running a DayZ server is no small task, and nothing disrupts a session quite like an unexpected crash or a sudden, unannounced restart. Whether you&#8217;re managing a small private server for friends or hosting a busy public community, keeping players informed before a restart is the difference between a smooth&#8230;<\/p>\n","protected":false},"author":7,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"ht-kb-category":[1774],"ht-kb-tag":[9757,9766,9763,9755,9761,9768,9764,9767,9770,9771,9756,9758,9762,9772,9754,9769,9765,9759,9760],"class_list":["post-18703","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-dayz","ht_kb_tag-dayz-automated-restart-guide","ht_kb_tag-dayz-community-server-management","ht_kb_tag-dayz-hosting-best-practices","ht_kb_tag-dayz-hosting-optimization","ht_kb_tag-dayz-messages-xml-setup","ht_kb_tag-dayz-mission-file-configuration","ht_kb_tag-dayz-restart-notification-system","ht_kb_tag-dayz-restart-timer-setup","ht_kb_tag-dayz-server-admin-guide","ht_kb_tag-dayz-server-automation-tools","ht_kb_tag-dayz-server-config-tutorial","ht_kb_tag-dayz-server-crash-prevention","ht_kb_tag-dayz-server-management-tips","ht_kb_tag-dayz-server-restart-alerts","ht_kb_tag-dayz-server-restart-schedule","ht_kb_tag-dayz-server-scripting-guide","ht_kb_tag-dayz-server-uptime-improvement","ht_kb_tag-dayz-server-warnings-before-restart","ht_kb_tag-dayz-xml-messages-example"],"acf":[],"_links":{"self":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/18703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=18703"}],"version-history":[{"count":1,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/18703\/revisions"}],"predecessor-version":[{"id":18708,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/18703\/revisions\/18708"}],"wp:attachment":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=18703"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=18703"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=18703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}