Jump to content
  • 0

Problem with sheduler.xml


icey

Question

Hey guys. I have another problem on my server *arg* and i dont know what the problem is or how to fix it.....

 

 

Sometimes my BEC says in global chat "Server restart in 15 - 10 - 5 - 3 - 1" and sometimes not... I think its everytime the same time but i dont rly know...

 

For example at tonight:

 

[2014-05-16 | 02:44:55]  RCon admin #1: (Global) BEC : This server will restart in 15 min.
[2014-05-16 | 02:49:55]  RCon admin #1: (Global) BEC : This server will restart in 10 min.
[2014-05-16 | 02:54:55]  RCon admin #1: (Global) BEC : This server will restart in 5 min.
[2014-05-16 | 02:56:55]  RCon admin #1: (Global) BEC : This server will restart in 3 min.
[2014-05-16 | 02:58:55]  RCon admin #1: (Global) BEC : This server will restart in 1 min. Please logout to ensure character save.
[2014-05-16 | 03:01:40]  Player request timed out (Server didn't respond)
[2014-05-16 | 03:02:24]  Player request timed out (Server didn't respond)
[2014-05-16 | 03:03:09]  Player request timed out (Server didn't respond)
[2014-05-16 | 03:03:53]  Player request timed out (Server didn't respond)
[2014-05-16 | 03:04:10]  RCon admin #0 (xxxxxxxxxxxxxxxxxxx) logged in
[2014-05-16 | 06:01:52]  Player request timed out (Server didn't respond)
[2014-05-16 | 06:02:37]  Player request timed out (Server didn't respond)
[2014-05-16 | 06:03:21]  Player request timed out (Server didn't respond)
[2014-05-16 | 06:04:05]  Player request timed out (Server didn't respond)
[2014-05-16 | 06:04:49]  Player request timed out (Server didn't respond)
[2014-05-16 | 06:05:17]  RCon admin #0 (xxxxxxxxxxxxxxxxxxxx) logged in

 

 

Normaly the same stuff should happen from 05:45:00 to 05:59:00 but BEC doesnt write it ...

 

Here is my xml maybe for mistakes

 

<Scheduler>

	<!-- *** RESTART 12 *** -->
	<!-- 15 min to the 12:00 restart -->
	<job id="0">
		<time>02:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="1">
		<time>02:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="2">
		<time>02:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	
	</job>
	
	<!-- 3 min to restart -->
	<job id="3">
		<time>02:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="4">
		<time>02:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
		<!-- *** RESTART 15 *** -->
	<!-- 15 min to restart -->
	<job id="5">
		<time>05:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="6">
		<time>05:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="7">
		<time>05:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	<!-- 3 min to restart -->
	<job id="8">
		<time>05:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="9">
		<time>05:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
			<!-- *** RESTART 18 *** -->
	<!-- 15 min to restart -->
	<job id="10">
		<time>08:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="11">
		<time>08:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="12">
		<time>08:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	<!-- 3 min to restart -->
	<job id="13">
		<time>08:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="14">
		<time>08:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
			<!-- *** RESTART 21 *** -->
	<!-- 15 min to restart -->
	<job id="15">
		<time>11:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="16">
		<time>11:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="17">
		<time>11:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 3 min to restart -->
	<job id="18">
		<time>11:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="19">
		<time>11:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
			<!-- *** RESTART 00 *** -->
	<!-- 15 min to restart -->
	<job id="20">
		<time>14:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="21">
		<time>14:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="22">
		<time>14:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 3 min to restart -->
	<job id="23">
		<time>14:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="24">
		<time>14:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
			<!-- *** RESTART 03 *** -->
	<!-- 15 min to restart -->
	<job id="25">
		<time>17:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="26">
		<time>17:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="27">
		<time>17:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 3 min to restart -->
	<job id="28">
		<time>17:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="29">
		<time>17:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
		
	
			<!-- *** RESTART 06 *** -->
	<!-- 15 min to restart -->
	<job id="30">
		<time>20:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="31">
		<time>20:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="32">
		<time>20:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 3 min to restart -->
	<job id="33">
		<time>20:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="34">
		<time>20:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
			<!-- *** RESTART 09 *** -->
	<!-- 15 min to restart -->
	<job id="35">
		<time>23:45:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 10 min to restart -->
	<job id="36">
		<time>23:50:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 10 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 5 min to restart -->
	<job id="37">
		<time>23:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 5 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 3 min to restart -->
	<job id="38">
		<time>23:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 3 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	
	<!-- 1 min to restart -->
	<job id="39">
		<time>23:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 This server will restart in 1 min. Please logout to ensure character save.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	</Scheduler>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

my shutdown and my restart is in my webinterface... its an integrated restartplaner ... i can only set the time there like restart 3 6 9 and so on...

.....

 

yeah my restart comments are out of date because i tried to fix the scheduler and wrote it different then before but i ignored that stuff....

 

i dont know why they are 5 seconds to early i dont rly now but i dont rly care about 5 secs. my gameserver settings from the hoster should be ok i think :D my ingame time is local germany time

Link to comment
Share on other sites

  • 0

Here is an example from our Scheduler.xml

<job id="0">
		<time>034500</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 Server Restart in 15 minutes </cmd>	
		<cmdtype>0</cmdtype>
	</job>

The <time> indicates the server will send the alert 3 hours and 45 minutes after the server restarted.

We have automatic 4 hour backups so this works for us. However if the auto restart kicks in and then I restart 2 hours later, the xml resets and will alert 3 hours and 45 minuites later, however it will not make it because our auto restart will still restart even though I manually restarted.

 

This may help

<!-- 2 Time Formats Can Be Used:
		 00:00:00 - HH:MM:SS - Example, 02:30:00 would be 2:30am.  Messages using this format are sent based on the node's time.  It is recommend to set your ACP profile time to the same timezone as the node. 
		 000000 - HHMMSS - Example, 003000 Is 30 Minutes From When Server Started
	-->

Notice the colons

Link to comment
Share on other sites

  • 0

 

and why is your logfile showing these messages 5 seconds to soon?

02:44:55 instead of 02:45:00

 

are your timesettings on this machine correct?

 

Scheduler work on when BEC started when you use time "000000" format and from server clock when using "00:00:00".

It also tends to play nice with the servers networking, so if you have a server that spams a lot of network messages to players, it can lag behind. 

 

 

 

my shutdown and my restart is in my webinterface... its an integrated restartplaner ... i can only set the time there like restart 3 6 9 and so on...

 

 

If the integrated restartplanner is also working on backing up your DB, that's nice. But one of the nice features of the Scheduler is that it is capable of restarting the server, allowing you to schedule messages, commands and other things, plus having the restarts when you want it. If you are good at scripting, you can conceivably also trigger a bat file to make a DB copy before a restart, if you are on a Dedicated server and know your DB scripting.

For problems with Bec, be sure to always look at the BeErrorLog, as it will tell you if there are any issues with the XML, and where it might be. 

If you dont get any Errors recorded, and bec do print the messages in global, then chances are the problem is with something else (integrated restarter?). 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...