Jump to content
  • 0

BEC Restart


willybob

Question

So I was trying to setup BEC Scheduled restarts, I edited the .xml to look like this:
 

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

<Scheduler>

<!-- INTERNAL COMMANDS -->
<job id="0">
<time>03:50</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 10 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="1">
<time>03:55</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 5 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="2">
<time>03:59</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 1 min!</cmd> 
<cmdtype>0</cmdtype> 
</job>

<!-- 4:00 AM restart -->
<job id="3">
<time>04:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>   
</job>

<job id="4">
<time>7:50</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 10 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="5">
<time>7:55</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 5 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="6">
<time>7:59</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 1 min!</cmd> 
<cmdtype>0</cmdtype> 
</job>

<!-- 8:00 AM restart -->
<job id="7">
<time>8:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>   
</job>

<job id="8">
<time>11:50</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 10 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="9">
<time>11:55</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 5 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="10">
<time>11:59</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 1 min!</cmd> 
<cmdtype>0</cmdtype> 
</job>

<!-- 12:00 AM restart -->
<job id="11">
<time>12:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>   
</job>

<job id="12">
<time>15:50</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 10 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="13">
<time>15:55</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 5 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="14">
<time>15:59</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 1 min!</cmd> 
<cmdtype>0</cmdtype> 
</job>

<!-- 16:00 PM restart -->
<job id="15">
<time>16:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>   
</job>

<job id="16">
<time>19:50</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 10 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="17">
<time>19:55</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 5 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="18">
<time>19:59</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 1 min!</cmd> 
<cmdtype>0</cmdtype> 
</job>

<!-- 20:00 PM restart -->
<job id="19">
<time>20:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>   
</job>

<job id="20">
<time>23:50</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 10 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="21">
<time>23:55</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 5 min</cmd> 
<cmdtype>0</cmdtype> 
</job>

<job id="22">
<time>23:59</time>
<day>1,2,3,4,5,6,7</day> 
<loop>0</loop> 
<cmd>say -1 Server will auto restart in 1 min!</cmd> 
<cmdtype>0</cmdtype> 
</job>

<!-- 00:00 AM restart -->
<job id="23">
<time>00:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>   
</job>

   <!-- Show text ingame after 30 min with loop enabled -->
   <job id="24">
      <time>003000</time>
        <delay>000000</delay>
      <day>1,2,3,4,5,6,7</day>
      <loop>1</loop> 
      <cmd>say -1 Insert your message </cmd>   
      <cmdtype>0</cmdtype>         
   </job>
   
   <!-- Show text ingame after 15 min with loop enabled -->
   <job id="25">
      <time>001500</time>
        <delay>000000</delay>
      <day>1,2,3,4,5,6,7</day>
      <loop>1</loop> 
      <cmd>say -1 Insert your message </cmd>   
      <cmdtype>0</cmdtype>         
   </job>

</Scheduler> 

after doing this I read that you need a monitoring script that will turn the server back on and will start BEC back up too, how do I do this?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Use this Restarter.txt and open it copy paste everything into a Batch file, Or just save as and save it as a batch file :P, Just edit the path to where your things are located.

 

And in the Scheduler.xml add this to the time you want it to restart.

	<job id="5">
		<time>03:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>C:\ServerTools\Bec\Config\Restarter.bat</cmd>	
		<cmdtype>1</cmdtype>			
	</job>

Restarter.bat.txt

Link to comment
Share on other sites

  • 0
  On 9/30/2013 at 6:37 PM, SpreadKiller said:

 

Use this Restarter.txt and open it copy paste everything into a Batch file, Or just save as and save it as a batch file :P, Just edit the path to where your things are located.

 

And in the Scheduler.xml add this to the time you want it to restart.

	<job id="5">
		<time>03:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>C:\ServerTools\Bec\Config\Restarter.bat</cmd>	
		<cmdtype>1</cmdtype>			
	</job>

 

See It wont work as mine is hosted by a host, so I dont know what to put for the paths

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...