Ver código fuente de BEC - Scheduler.xml (Ejemplo de reinicio de 4 horas)

De Nitradopedia ES
Saltar a: navegación, buscar

Ejemplo de como configurar BEC para reiniciar automaticamente tu servidor cada 4 horas con advertencias.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<Scheduler>
  <!-- INTERNAL COMMANDS -->
  <job id='0'>
    <start>07: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='1'>
    <start>07: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='2'>
    <start>07:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 5 minutes - Server locked!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='3'>
    <start>07:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#lock</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='4'>
    <start>07:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 3 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='5'>
    <start>07:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 2 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='6'>
    <start>07:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 1 minute!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='7'>
    <start>08:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#shutdown</cmd>
    <cmdtype>1</cmdtype>
</job>
<job id='8'>
    <start>11: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='9'>
    <start>11: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='10'>
    <start>11:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 5 minutes - Server locked!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='11'>
    <start>11:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#lock</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='12'>
    <start>11:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 3 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='13'>
    <start>11:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 2 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='14'>
    <start>11:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 1 minute!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='15'>
    <start>12:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#shutdown</cmd>
    <cmdtype>1</cmdtype>
</job>


<job id='16'>
    <start>15: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='17'>
    <start>15: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='18'>
    <start>15:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 5 minutes - Server locked!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='19'>
    <start>15:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#lock</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='20'>
    <start>15:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 3 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='21'>
    <start>15:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 2 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='22'>
    <start>15:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 1 minute!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='23'>
    <start>16:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#shutdown</cmd>
    <cmdtype>1</cmdtype>
</job>


<job id='24'>
    <start>19: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='25'>
    <start>19: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='26'>
    <start>19:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 5 minutes - Server locked!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='27'>
    <start>19:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#lock</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='28'>
    <start>19:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 3 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='29'>
    <start>19:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 2 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='30'>
    <start>19:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 1 minute!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='31'>
    <start>20:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#shutdown</cmd>
    <cmdtype>1</cmdtype>
</job>


<job id='32'>
    <start>23: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='33'>
    <start>23: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='34'>
    <start>23:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 5 minutes - Server Locked!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='35'>
    <start>23:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#lock</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='36'>
    <start>23:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 3 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='37'>
    <start>23:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 2 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='38'>
    <start>23:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 1 minute!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='39'>
    <start>00:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#shutdown</cmd>
    <cmdtype>1</cmdtype>
</job>


<job id='40'>
    <start>03: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='41'>
    <start>03: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='42'>
    <start>03:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 5 minutes - Server locked!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='43'>
    <start>03:55:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>#lock</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='44'>
    <start>03:57:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 3 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='45'>
    <start>03:58:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 2 minutes!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='46'>
    <start>03:59:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
    <cmd>say -1 Restart in 1 minute!</cmd>
    <cmdtype>0</cmdtype>
</job>
<job id='47'>
    <start>04:00:00</start>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
	<runtime>000000</runtime>
     <cmd>#shutdown</cmd>
    <cmdtype>1</cmdtype>
</job>
<job id='48'>
	<start>000500</start>
	<day>1,2,3,4,5,6,7</day>
	<loop>-1</loop>
	<runtime>000500</runtime>
	<cmd>fortune</cmd>
</job>
</Scheduler>