Jump to content
  • 0

Need help with BEC auto-restart


disto1978

Question

Hello,

i´m experimenting a lot of days and i don´t get it working. I have found a lot of HowTo´s and tryed to update the scripts to the new versions.

 

My Scheduler.xml

<?xml version="1.0"?>
<Scheduler>
	<job id='0'>
		<day>1,2,3,4,5,6,7</day>
		<start>000000</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>say -1 BEC server active!</cmd>
	</job>
   
	<job id="1">
		<start>053000</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 30 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="2">
		<start>054500</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 15 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="3">
		<start>055000</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 10 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="4">
		<start>055500</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 5 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="5">
		<start>055600</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 4 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="6">
		<start>055700</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 3 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="7">
		<start>055800</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in 2 minutes</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="8">
		<start>055900</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in the next minute!</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="9">
		<start>055930</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in the next 30 seconds!</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="10">
		<start>055945</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in the next 15 seconds!</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="11">
		<start>055949</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Server will Auto restart in the next 10 seconds!</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="12">
		<start>055950</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...10</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="13">
		<start>055951</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...9</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="14">
		<start>055952</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...8</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="15">
		<start>055953</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...7</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="16">
		<start>055954</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...6</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="17">
		<start>055955</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...5</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="18">
		<start>055956</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...4</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="19">
		<start>055957</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...3</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="20">
		<start>055958</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...2</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="21">
		<start>055959</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 ...1</cmd>	
		<cmdtype>0</cmdtype>			
	</job>

	<job id="22">
		<start>060000</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SHUTDOWN</cmd>	
		<cmdtype>0</cmdtype>			
	</job>
    
  <job id='23'>
		<day>1,2,3,4,5,6,7</day>
		<start>000040</start>
		<runtime>001000</runtime>
		<loop>-1</loop>
		<cmd>say -1 Do NOT loot/damage LOCKED buildings or vehicles! (Result = Kick/Ban!)</cmd>
	</job>
  
  <job id='24'>
		<day>1,2,3,4,5,6,7</day>
		<start>000050</start>
		<runtime>001000</runtime>
		<loop>-1</loop>
		<cmd>say -1 Loot/steal UNlocked buildings/vehicles is ALLOWED! ...but please no insane destroying of it!</cmd>
	</job>  


</Scheduler>

In HiveExt.ini i have set

[Time]
Type = Static
Hour = 8

...but absolute no effect. The serverrules i have set in the scheduler working fine (ID 23,24) but absolute no warings about restarting and the server don´t shut down after 6 hours. Can someone tell me please why this don´t working?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Heres a section from mine. Working Fine.

<job id='49'>
    <start>05:45:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>say -1 Restart in 15 minutes</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='50'>
    <start>05:50:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>say -1 Restart in 10 minutes</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='51'>
    <start>05:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>say -1 Restart in 05 minutes</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='52'>
    <start>05:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>say -1 Restart in 03 minutes</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='53'>
    <start>05:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>say -1 Restart in 02 minutes</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='54'>
    <start>05:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>say -1 Restart in 01 minute</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='55'>
    <start>06:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>d:\pale\dayz-epoch\kill-dayz-and-bec.bat</cmd>
    <cmdtype>1</cmdtype>
</job> 
Link to comment
Share on other sites

  • 0

Thanks a lot for your answers.

Does the counter starts at serverstart or have i sync it with the server daytime?

 

In my HiveExt.ini i have set...

[Time]
Type = Static
Hour = 8

If i want a restart evey 3 hours have i set the counter for restart at 030000 or 110000?

Link to comment
Share on other sites

  • 0

Some important things to remember when running BEC:

 

1.) Restart warnings should be using time format 2, as it is specific to real world, ie 6am = 06:00:00

2.) "Advertising" messages that you want to show every 20 min or so (advertising TS/Website/etc) should be in time format 1, as it is specific to how long Bec has been running, ie every 25 min = 002500

3.) When using time format 2, you need to know what timezone your server is in, as it will read the time from the actual server.

4.) BEC is started as a separate service from Arma 2 - there are always going to be slight delays when timing things, so give yourself a 30 sec margin in messages.

5.) Use the to be safe.

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...