Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
eZthetic

BEC Scheduler.xml doing restart on wrong time

Recommended Posts

Hello everyone.

I've been working on the bec scheduler.xml for the past 3 days and after going through all the old topics here and on other forums, I finally got it working at some point. It does restarts with the warning messages I've put in, it sends the global admin server messages and such but for some reason, it does the restarts at wrong times.

For example, one of the automated restarts should happen at 04:00 am and the next one at 10:00am in 6h intervals, now that I went through the server logs the first happened at 03:20am and the 2nd at 07:20am.

Why is it happening in 4h intervals and 20min offset? It doesn't make sense in ANY way to me.

 

Thanks everyone in advance.

 

02:20:02 : RCon admin #3: (Global) Restart in 60 Minutes
02:50:02 : RCon admin #3: (Global) Restart in 30 Minutes
03:05:02 : RCon admin #3: (Global) Restart in 15 Minutes
03:10:02 : RCon admin #3: (Global) Restart in 10 Minutes
03:15:02 : RCon admin #3: (Global) Restart in 5 Minutes
03:16:02 : RCon admin #3: (Global) Restart in 4 Minutes
03:17:02 : RCon admin #3: (Global) Restart in 3 Minutes
03:18:02 : RCon admin #3: (Global) Restart in 2 Minutes
03:19:02 : RCon admin #3: (Global) Restart in 1 Minute
03:20:48 : No Valid response. Trying to reconnect.!
03:20:52 : No Valid response. Trying to reconnect.!
03:20:56 : No Valid response. Trying to reconnect.!
03:20:56 : Lost Connection!
03:20:56 : Closing socket & exiting!
03:22:03 : No Valid response. Trying to reconnect.!
03:22:07 : No Valid response. Trying to reconnect.!
03:22:08 : Rcon client logging in
03:22:09 : RCon admin #0 (194.163.146.137:52773) logged in
03:22:09 : RCon admin #0 (194.163.146.137:52773) logged in
03:22:09 : RCon admin #0 (194.163.146.137:52773) logged in

06:22:08 : RCon admin #0: (Global) Restart in 60 Minutes
06:52:08 : RCon admin #0: (Global) Restart in 30 Minutes
07:07:08 : RCon admin #0: (Global) Restart in 15 Minutes
07:12:08 : RCon admin #0: (Global) Restart in 10 Minutes
07:17:08 : RCon admin #0: (Global) Restart in 5 Minutes
07:18:08 : RCon admin #0: (Global) Restart in 4 Minutes
07:19:08 : RCon admin #0: (Global) Restart in 3 Minutes
07:20:08 : RCon admin #0: (Global) Restart in 2 Minutes
07:21:08 : RCon admin #0: (Global) Restart in 1 Minute
07:22:11 : Lost Connection!
07:22:11 : Closing socket & exiting!
07:23:33 : No Valid response. Trying to reconnect.!
07:23:37 : No Valid response. Trying to reconnect.!
07:23:41 : No Valid response. Trying to reconnect.!
07:23:43 : Rcon client logging in
07:23:43 : RCon admin #0 (194.163.146.137:64007) logged in

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet  href="acs.xsl" type="text/xsl"?>

<Scheduler>
  <job id="0">
    <day>1,2,3,4,5,6,7</day>
    <start>030000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 60 Minutes</cmd>
  </job>
  <job id="1">
    <day>1,2,3,4,5,6,7</day>
    <start>033000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 30 Minutes</cmd>
  </job>
  <job id="2">
    <day>1,2,3,4,5,6,7</day>
    <start>034500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 15 Minutes</cmd>
  </job>
  <job id="3">
    <day>1,2,3,4,5,6,7</day>
    <start>035000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 10 Minutes</cmd>
  </job>
  <job id="4">
    <day>1,2,3,4,5,6,7</day>
    <start>035500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 5 Minutes</cmd>
  </job>
  <job id="5">
    <day>1,2,3,4,5,6,7</day>
    <start>035600</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 4 Minutes</cmd>
  </job>
  <job id="6">
    <day>1,2,3,4,5,6,7</day>
    <start>035700</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 3 Minutes</cmd>
  </job>
  <job id="7">
    <day>1,2,3,4,5,6,7</day>
    <start>035800</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 2 Minutes</cmd>
  </job>
  <job id="8">
    <day>1,2,3,4,5,6,7</day>
    <start>035900</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 1 Minute</cmd>
  </job>
  <job id="9">
    <day>1,2,3,4,5,6,7</day>
    <start>040000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>#shutdown</cmd>
  </job>
  <job id="10">
    <day>1,2,3,4,5,6,7</day>
    <start>090000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 60 Minutes</cmd>
  </job>
  <job id="11">
    <day>1,2,3,4,5,6,7</day>
    <start>093000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 30 Minutes</cmd>
  </job>
  <job id="12">
    <day>1,2,3,4,5,6,7</day>
    <start>094500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 15 Minutes</cmd>
  </job>
  <job id="13">
    <day>1,2,3,4,5,6,7</day>
    <start>095000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 10 Minutes</cmd>
  </job>
  <job id="14">
    <day>1,2,3,4,5,6,7</day>
    <start>095500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 5 Minutes</cmd>
  </job>
  <job id="15">
    <day>1,2,3,4,5,6,7</day>
    <start>095600</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 4 Minutes</cmd>
  </job>
  <job id="16">
    <day>1,2,3,4,5,6,7</day>
    <start>095700</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 3 Minutes</cmd>
  </job>
  <job id="17">
    <day>1,2,3,4,5,6,7</day>
    <start>095800</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 2 Minutes</cmd>
  </job>
  <job id="18">
    <day>1,2,3,4,5,6,7</day>
    <start>095900</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 1 Minute</cmd>
  </job>
  <job id="19">
    <day>1,2,3,4,5,6,7</day>
    <start>100000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>#shutdown</cmd>
  </job>
  <job id="20">
    <day>1,2,3,4,5,6,7</day>
    <start>150000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 60 Minutes</cmd>
  </job>
  <job id="21">
    <day>1,2,3,4,5,6,7</day>
    <start>153000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 30 Minutes</cmd>
  </job>
  <job id="22">
    <day>1,2,3,4,5,6,7</day>
    <start>154500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 15 Minutes</cmd>
  </job>
  <job id="23">
    <day>1,2,3,4,5,6,7</day>
    <start>155000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 10 Minutes</cmd>
  </job>
  <job id="24">
    <day>1,2,3,4,5,6,7</day>
    <start>155500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 5 Minutes</cmd>
  </job>
  <job id="25">
    <day>1,2,3,4,5,6,7</day>
    <start>155600</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 4 Minutes</cmd>
  </job>
  <job id="26">
    <day>1,2,3,4,5,6,7</day>
    <start>155700</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 3 Minutes</cmd>
  </job>
  <job id="27">
    <day>1,2,3,4,5,6,7</day>
    <start>155800</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 2 Minutes</cmd>
  </job>
  <job id="28">
    <day>1,2,3,4,5,6,7</day>
    <start>155900</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 1 Minute</cmd>
  </job>
  <job id="29">
    <day>1,2,3,4,5,6,7</day>
    <start>160000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>#shutdown</cmd>
  </job>
  <job id="30">
    <day>1,2,3,4,5,6,7</day>
    <start>210000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 60 Minutes</cmd>
  </job>
  <job id="31">
    <day>1,2,3,4,5,6,7</day>
    <start>213000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 30 Minutes</cmd>
  </job>
  <job id="32">
    <day>1,2,3,4,5,6,7</day>
    <start>214500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 15 Minutes</cmd>
  </job>
  <job id="33">
    <day>1,2,3,4,5,6,7</day>
    <start>215000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 10 Minutes</cmd>
  </job>
  <job id="34">
    <day>1,2,3,4,5,6,7</day>
    <start>215500</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 5 Minutes</cmd>
  </job>
  <job id="35">
    <day>1,2,3,4,5,6,7</day>
    <start>215600</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 4 Minutes</cmd>
  </job>
  <job id="36">
    <day>1,2,3,4,5,6,7</day>
    <start>215700</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 3 Minutes</cmd>
  </job>
  <job id="37">
    <day>1,2,3,4,5,6,7</day>
    <start>215800</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 2 Minutes</cmd>
  </job>
  <job id="38">
    <day>1,2,3,4,5,6,7</day>
    <start>215900</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>say -1 Restart in 1 Minute</cmd>
  </job>
  <job id="39">
    <day>1,2,3,4,5,6,7</day>
    <start>220000</start>
    <runtime>000000</runtime>
    <loop>0</loop>
    <cmd>#shutdown</cmd>
  </job>

  <job id="40">
    <day>1,2,3,4,5,6,7</day>
    <start>000120</start>
    <runtime>005900</runtime>
    <loop>-1</loop>
    <cmd>say -1 Join our discord for rules and server info - discord.gg/XYZ </cmd>			
  </job>
  <job id="41">
    <day>1,2,3,4,5,6,7</day>
    <start>000240</start>
    <runtime>007000</runtime>
    <loop>-1</loop>
    <cmd>say -1 You can report cheaters/bugusers via ticket on our discord</cmd>	
  </job>
  <job id="42">
    <day>1,2,3,4,5,6,7</day>
    <start>000600</start>
    <runtime>008000</runtime>
    <loop>-1</loop>
    <cmd>say -1 Server restarts every 6 hours</cmd>
  </job>

</Scheduler>

 

Edited by eZthetic
  • Like 1

Share this post


Link to post
Share on other sites

Fixed. If anyone else ever has the same problem, make sure you use the 04:00:00 time format instead of 040000. I knew that both were recognized but not that they have different effects.

  • Thanks 1

Share this post


Link to post
Share on other sites

Hi.
Glad you fixed it, but while we're at it, would you be kind enough to explain to me how you run that "scheduler.xml" file on your server to do the cyclic reboot?
A link on where it is explained is also fine.
Thanks 😉

Share this post


Link to post
Share on other sites
On 4/30/2022 at 4:49 PM, Riddick_2K said:

, would you be kind enough to explain to me how you run that "scheduler.xml" file on your server to do the cyclic reboot

the "scheduler file" is run inside the BEC program available at this link

https://github.com/TheGamingChief/BattlEye-Extended-Controls

the scheduler shuts dayz down, then you have a .bat file running that restarts DayZ, an example is in the link below

These are pretty simple versions, there are other more complex versions available, if you search for them

https://write.corbpie.com/the-ideal-dayz-server-start-bat/

 

  • Thanks 1

Share this post


Link to post
Share on other sites
Sign in to follow this  

×