Jump to content
  • 0

BEC scheduler help


BLFonsworth

Question

I'm using the #restart command instead of #shutdown. Is this correct? Or am I supposed to do #shutdown and then a job to #restart?

 

There are tons of tuts on how to type the proper format but none on giving proper commands to resrat correctly..

 

I read somewhere if you use the #shutdown command you need some sort of monitor running to detect the server is down and bring it back up. Why do that if you can just use the #restart command?

 

 

 

<Scheduler>
<!--SERVER RESTARTS-->
    <job id="0">
        <time>00:00:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#restart</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="1">
        <time>04:00:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#restart</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="2">
        <time>08:00:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#restart</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="3">
        <time>12:00:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#restart</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="4">
        <time>16:00:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#restart</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="5">
        <time>20:00:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#restart</cmd>
        <cmdtype>0</cmdtype>
    </job>
    
<!-- Restart Warnings -->
    <job id="6">
        <time>23:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Will Restart in 5 MINUTES</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="7">
        <time>03:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Will Restart in 5 MINUTES</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="8">
        <time>07:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Will Restart in 5 MINUTES</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="9">
        <time>11:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Will Restart in 5 MINUTES</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="10">
        <time>15:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Will Restart in 5 MINUTES</cmd>
        <cmdtype>0</cmdtype>
    </job>
    <job id="11">
        <time>19:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Will Restart in 5 MINUTES</cmd>
        <cmdtype>0</cmdtype>
    </job>
        <job id="12">
        <time>001000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server Restarts Every 4 Hours WITH WARNINGS! Based on EST. Midnight, 4 am, 8am, 12noon, 4pm, 8pm</cmd>
        <cmdtype>0</cmdtype>
    </job>
        <job id="13">
        <time>035800</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 SERVER RESTART IN 2 MINUTES! GET SAFE!</cmd>
        <cmdtype>0</cmdtype>
    </job>
        <job id="14">
        <time>035900</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd> say -1 SERVER RESTART IN 1 MINUTE! </cmd>
        <cmdtype>0</cmdtype>
    </job>
        <job id="15">
        <time>035930</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd> say -1 SERVER RESTART IN 30 SECONDS! WHY ARE YOU NOT IN A SAFE SPOT YET?! </cmd>
        <cmdtype>0</cmdtype>
    </job>

</Scheduler>
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Are you saying it is not working? 

 

Sort of..

 

After I posted this, the server went through 2 restarts..

 

The #restart command seems to only restart the mission, I was not in the server playing when it restarted the first time but one of my other admins was, and he says it seemed to have restarted like usual..but when i checked the server control panel, it said it was still running and had not restarted.

 

So,

 

I switched to the #shutdown command and it DID shut the server down and then boot back up according to the control panel log, but the mission didn't start.. I tried to connect and all I got was the "waiting for host" screen. I had to do a manual reboot to make the mission script start..

 

would I need to give a #shutdown command and then a #restart command?

Link to comment
Share on other sites

  • 0

what you have to do is locate it to your serverrestart.bat file, this is what DayZPriv used to do atleast. I dont know if you have to make one or what but this is how mine was set up (every 3 hrs)

If you do use this just make sure you change the mssages and that you locate it to the right file at the restart command.

<?xml version="1.0"?>
<!-- Written by www.3gghosting.com -->
<Scheduler>
	
    <!-- Load Bans -->
    <job id="0">
	<time>000100</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop>
	<cmd>loadbans</cmd>
	<cmdtype>0</cmdtype>
    </job>

    <!-- Restart (Every 3 hours) -->
	
	<job id="1">
	<time>023000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 Server will restart in 30 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="2">
	<time>025000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 Server will restart 10 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="3">
	<time>025500</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 Server will restart 5 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="4">
	<time>025900</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>1</loop> 
	<cmd>say -1 Server will restart 1 minute, PLEASE LOG OFF!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>

    <job id="5">
	<time>030000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>C:/dayz server manager/Instance4/epoch/serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>
	
	<job id="6">
    <time>003000</time>
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 Welcome to [DBDH] DayZ Epoch Namalsk! Please feel free to check out our TeamSpeak and Website located in the debug monitor. </cmd>    
    <cmdtype>0</cmdtype> 
	</job>
	
	<job id="7">
    <time>003100</time> 
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 There is no base building in high traffic areas (barracks, fire houses, etc.)</cmd>    
    <cmdtype>0</cmdtype> 
	</job>

	<job id="8">
    <time>003200</time> 
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 If you have any suggestions as to what you would like to see on the server please check out our forums.</cmd>    
    <cmdtype>0</cmdtype> 
	</job>	

	<job id="9">
    <time>003300</time>
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 Donations on the server come with perks like bases, weapons, building supplies and MORE!</cmd>    
    <cmdtype>0</cmdtype> 
	</job>		
	
	<job id="10">
    <time>003300</time>
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 Any problems with the server or ban appeals can be examined by emailing our owner through the website or the TeamSpeak.</cmd>    
    <cmdtype>0</cmdtype> 
	</job>	
	
</Scheduler>
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...