Advertisement
HasterPaster

Scheduler - 4h restart + backup@00.00

May 6th, 2021
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.04 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
  2.  
  3. <Scheduler>
  4.  
  5. <!-- Restart every 4 hours with 15, 10, 5, and 1 minute notification -->
  6. <!-- The restart at 00:00 is handled by the external backup script. -->
  7.  
  8. <!-- 00:00 swedish time, 23:00 local time. -->
  9.     <job id='0'>
  10.         <day>1,2,3,4,5,6,7</day>
  11.         <start>22:45:00</start>
  12.         <runtime>000020</runtime>
  13.         <loop>0</loop>
  14.         <cmd>say -1 The server will restart in 15 minutes.</cmd>
  15.     </job>
  16.     <job id='1'>
  17.         <day>1,2,3,4,5,6,7</day>
  18.         <start>22:50:00</start>
  19.         <runtime>000020</runtime>
  20.         <loop>0</loop>
  21.         <cmd>say -1 The server will restart in 10 minutes.</cmd>
  22.     </job>
  23.     <job id='2'>
  24.         <day>1,2,3,4,5,6,7</day>
  25.         <start>22:55:00</start>
  26.         <runtime>000020</runtime>
  27.         <loop>0</loop>
  28.         <cmd>say -1 The server will restart in 5 minutes.</cmd>
  29.     </job>
  30.     <job id='3'>
  31.         <day>1,2,3,4,5,6,7</day>
  32.         <start>22:59:00</start>
  33.         <runtime>000020</runtime>
  34.         <loop>0</loop>
  35.         <cmd>say -1 The server will restart in 1 minute.</cmd>
  36.     </job>
  37.  
  38.     <!-- Don't shut down the server. Let the backup script do that.
  39.    <job id='4'>
  40.         <day>1,2,3,4,5,6,7</day>
  41.         <start>23:00:00</start>
  42.         <runtime>000020</runtime>
  43.         <loop>0</loop>
  44.         <cmd>#shutdown</cmd>
  45.     </job>
  46.     -->
  47. <!-- End 00:00 restart. -->
  48.  
  49. <!-- 04:00 swedish time, 03:00 local time. -->
  50.     <job id='4'>
  51.         <day>1,2,3,4,5,6,7</day>
  52.         <start>02:45:00</start>
  53.         <runtime>000020</runtime>
  54.         <loop>0</loop>
  55.         <cmd>say -1 The server will restart in 15 minutes.</cmd>
  56.     </job>
  57.     <job id='5'>
  58.         <day>1,2,3,4,5,6,7</day>
  59.         <start>02:50:00</start>
  60.         <runtime>000020</runtime>
  61.         <loop>0</loop>
  62.         <cmd>say -1 The server will restart in 10 minutes.</cmd>
  63.     </job>
  64.     <job id='6'>
  65.         <day>1,2,3,4,5,6,7</day>
  66.         <start>02:55:00</start>
  67.         <runtime>000020</runtime>
  68.         <loop>0</loop>
  69.         <cmd>say -1 The server will restart in 5 minutes.</cmd>
  70.     </job>
  71.     <job id='7'>
  72.         <day>1,2,3,4,5,6,7</day>
  73.         <start>02:59:00</start>
  74.         <runtime>000020</runtime>
  75.         <loop>0</loop>
  76.         <cmd>say -1 The server will restart in 1 minute.</cmd>
  77.     </job>
  78.     <job id='8'>
  79.         <day>1,2,3,4,5,6,7</day>
  80.         <start>03:00:00</start>
  81.         <runtime>000020</runtime>
  82.         <loop>0</loop>
  83.         <cmd>#shutdown</cmd>
  84.     </job>
  85. <!-- End 04:00 restart. -->
  86.  
  87. <!-- 08:00 swedish time, 07:00 local time. -->
  88.     <job id='9'>
  89.         <day>1,2,3,4,5,6,7</day>
  90.         <start>06:45:00</start>
  91.         <runtime>000020</runtime>
  92.         <loop>0</loop>
  93.         <cmd>say -1 The server will restart in 15 minutes.</cmd>
  94.     </job>
  95.     <job id='10'>
  96.         <day>1,2,3,4,5,6,7</day>
  97.         <start>06:50:00</start>
  98.         <runtime>000020</runtime>
  99.         <loop>0</loop>
  100.         <cmd>say -1 The server will restart in 10 minutes.</cmd>
  101.     </job>
  102.     <job id='11'>
  103.         <day>1,2,3,4,5,6,7</day>
  104.         <start>06:55:00</start>
  105.         <runtime>000020</runtime>
  106.         <loop>0</loop>
  107.         <cmd>say -1 The server will restart in 5 minutes.</cmd>
  108.     </job>
  109.     <job id='12'>
  110.         <day>1,2,3,4,5,6,7</day>
  111.         <start>06:59:00</start>
  112.         <runtime>000020</runtime>
  113.         <loop>0</loop>
  114.         <cmd>say -1 The server will restart in 1 minute.</cmd>
  115.     </job>
  116.     <job id='13'>
  117.         <day>1,2,3,4,5,6,7</day>
  118.         <start>07:00:00</start>
  119.         <runtime>000020</runtime>
  120.         <loop>0</loop>
  121.         <cmd>#shutdown</cmd>
  122.     </job>
  123. <!-- End 08:00 restart. -->
  124.  
  125. <!-- 12:00 swedish time, 11:00 local time. -->
  126.     <job id='14'>
  127.         <day>1,2,3,4,5,6,7</day>
  128.         <start>10:45:00</start>
  129.         <runtime>000020</runtime>
  130.         <loop>0</loop>
  131.         <cmd>say -1 The server will restart in 15 minutes.</cmd>
  132.     </job>
  133.     <job id='15'>
  134.         <day>1,2,3,4,5,6,7</day>
  135.         <start>10:50:00</start>
  136.         <runtime>000020</runtime>
  137.         <loop>0</loop>
  138.         <cmd>say -1 The server will restart in 10 minutes.</cmd>
  139.     </job>
  140.     <job id='16'>
  141.         <day>1,2,3,4,5,6,7</day>
  142.         <start>10:55:00</start>
  143.         <runtime>000020</runtime>
  144.         <loop>0</loop>
  145.         <cmd>say -1 The server will restart in 5 minutes.</cmd>
  146.     </job>
  147.     <job id='17'>
  148.         <day>1,2,3,4,5,6,7</day>
  149.         <start>10:59:00</start>
  150.         <runtime>000020</runtime>
  151.         <loop>0</loop>
  152.         <cmd>say -1 The server will restart in 1 minute.</cmd>
  153.     </job>
  154.     <job id='18'>
  155.         <day>1,2,3,4,5,6,7</day>
  156.         <start>11:00:00</start>
  157.         <runtime>000020</runtime>
  158.         <loop>0</loop>
  159.         <cmd>#shutdown</cmd>
  160.     </job>
  161. <!-- End 12:00 restart. -->
  162.  
  163. <!-- 16:00 swedish time, 15:00 local time. -->
  164.     <job id='19'>
  165.         <day>1,2,3,4,5,6,7</day>
  166.         <start>14:45:00</start>
  167.         <runtime>000020</runtime>
  168.         <loop>0</loop>
  169.         <cmd>say -1 The server will restart in 15 minutes.</cmd>
  170.     </job>
  171.     <job id='20'>
  172.         <day>1,2,3,4,5,6,7</day>
  173.         <start>14:50:00</start>
  174.         <runtime>000020</runtime>
  175.         <loop>0</loop>
  176.         <cmd>say -1 The server will restart in 10 minutes.</cmd>
  177.     </job>
  178.     <job id='21'>
  179.         <day>1,2,3,4,5,6,7</day>
  180.         <start>14:55:00</start>
  181.         <runtime>000020</runtime>
  182.         <loop>0</loop>
  183.         <cmd>say -1 The server will restart in 5 minutes.</cmd>
  184.     </job>
  185.     <job id='22'>
  186.         <day>1,2,3,4,5,6,7</day>
  187.         <start>14:59:00</start>
  188.         <runtime>000020</runtime>
  189.         <loop>0</loop>
  190.         <cmd>say -1 The server will restart in 1 minute.</cmd>
  191.     </job>
  192.     <job id='23'>
  193.         <day>1,2,3,4,5,6,7</day>
  194.         <start>15:00:00</start>
  195.         <runtime>000020</runtime>
  196.         <loop>0</loop>
  197.         <cmd>#shutdown</cmd>
  198.     </job>
  199. <!-- End 16:00 restart. -->
  200.  
  201. <!-- 20:00 swedish time, 19:00 local time. -->
  202.     <job id='24'>
  203.         <day>1,2,3,4,5,6,7</day>
  204.         <start>18:45:00</start>
  205.         <runtime>000020</runtime>
  206.         <loop>0</loop>
  207.         <cmd>say -1 The server will restart in 15 minutes.</cmd>
  208.     </job>
  209.     <job id='25'>
  210.         <day>1,2,3,4,5,6,7</day>
  211.         <start>18:50:00</start>
  212.         <runtime>000020</runtime>
  213.         <loop>0</loop>
  214.         <cmd>say -1 The server will restart in 10 minutes.</cmd>
  215.     </job>
  216.     <job id='26'>
  217.         <day>1,2,3,4,5,6,7</day>
  218.         <start>18:55:00</start>
  219.         <runtime>000020</runtime>
  220.         <loop>0</loop>
  221.         <cmd>say -1 The server will restart in 5 minutes.</cmd>
  222.     </job>
  223.     <job id='27'>
  224.         <day>1,2,3,4,5,6,7</day>
  225.         <start>18:59:00</start>
  226.         <runtime>000020</runtime>
  227.         <loop>0</loop>
  228.         <cmd>say -1 The server will restart in 1 minute.</cmd>
  229.     </job>
  230.     <job id='28'>
  231.         <day>1,2,3,4,5,6,7</day>
  232.         <start>19:00:00</start>
  233.         <runtime>000020</runtime>
  234.         <loop>0</loop>
  235.         <cmd>#shutdown</cmd>
  236.     </job>
  237. <!-- End 20:00 restart. -->
  238.    
  239. </Scheduler>
  240.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement