Jump to content

Help with BEC scheduler.xml


dzrealkiller

Recommended Posts

Hmm I am having issues with BEC well not really issues I just cant figure it out... It is coming up for 12:00AM in France the server also restarts at 12:00AM I have made a schedule and no warning messages came up I think I done it wrong :S 

Any help would be awesome.

 

This is what I had...

 

<Scheduler>


    <!-- this job will start at 23:45:00 (11:45 pm) and will only run once a day at set time -->
    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 15 Minutes!</cmd>
    </job>


    <!-- this job will start at 23:45:00 (11:50 pm) and will only run once a day at set time -->
    <job id='2'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 10 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:55:00 (11:55 pm) and will only run once a day at set time -->
    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 5 Minutes! Log out now to ensure your gear saves!</cmd>
    </job>


   <!-- this job will start at 23:56:00 (11:56 pm) and will only run once a day at set time -->
    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:56:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 4 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:57:00 (11:57 pm) and will only run once a day at set time -->
   <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:57:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 3 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:58:00 (11:58 pm) and will only run once a day at set time -->
   <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:58:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 2 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:59:00 (11:59 pm) and will only run once a day at set time -->
   <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:59:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 1 Minute!</cmd>
    </job>


</Scheduler>
Link to comment
Share on other sites

Hi,

The information about version and other information is missing from the very top of your schedular.

I'm on my phone right now so I will edit this to add what's missing ASAP.

Also make sure in your BEC config you have the path to where your schedular.xml is located on your server.

It could be not reading the schedular.xml at all because of the following listed above. It is set to restart at local time, the jobs are good.

Regards,

Liam Benfield

Swiftnode.net

Link to comment
Share on other sites

I have taken a look and all seems good I think its how I have set the time or something in the code. I have messed with this warning system in the past and had issues it turned out to be something really simple I just cant remember what it was..

 

Also Is there an easier way to do this? the server is set to restart every 4 hours It just had a restart at 12:00AM France time do I have to code all of this for each restart or is there anyway to do it like below...

 

    <!-- this job will start after each restart and will run six times a day after the server has been running for (3hr 45m) -->
    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>000000</start>
        <runtime>034500</runtime>
        <loop>5</loop>
        <cmd>say -1 Server Restarts In 15 Minutes!</cmd>
    </job>
 
Would the above say "Server Restart In 15 Minutes!" when the server has been running for 3 hours and 45 Minutes?
From what I have worked out there will be 6 restarts in 24 hours when the server is restarting every 4 hours.
Link to comment
Share on other sites

Your schedular job ID starts at 1. It starts at 0 first.

The time format was right shown in your opening post example 23:00:00 it would restart at that time in local time for server location, in this case France.

Yes, It would say that message every 3 hours and 45 minutes from the server start.

Regards,

Liam Benfield

Swiftnode.net

Link to comment
Share on other sites

Ahh bugger yeah :D

 

Hmm was just wondering if I could set it to say server restarts in 15 minutes once the server has been running for 3 hours and 45 minutes instead of setting a specific time for each command... Basically each restart with time formate would require 7 Id's for every restart there are 6 restarts in 24 hours meaning that would require a whooping 42 Id's per day the formate I would like to try to use would only require 7 Id's It would save a lot of time and would keep the file as small as possible.

Link to comment
Share on other sites

Yes at start time 034500 and runtime 000000 then your message in the cmd.

So at 3 hours 35 minutes up time your message will be displayed.

Regards,

Liam Benfield

Swiftnode.net

Link to comment
Share on other sites

Does this look correct? I have just changed the code and uploaded It I guess I need to wait for a restart then it will activate this then I will need to wait for the next restart to see it in action? the only issue doing it this way is If I restart the server during the day for some reason it would mess the warnings in game up.

 

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


<Scheduler>


    <!-- this job will start at 23:45:00 (11:45 pm) and will only run once a day at set time -->
    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>034500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 15 Minutes!</cmd>
    </job>


    <!-- this job will start at 23:45:00 (11:50 pm) and will only run once a day at set time -->
    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>035000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 10 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:55:00 (11:55 pm) and will only run once a day at set time -->
    <job id='2'>
        <day>1,2,3,4,5,6,7</day>
        <start>035500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 5 Minutes! Log out now to ensure your gear saves!</cmd>
    </job>


   <!-- this job will start at 23:56:00 (11:56 pm) and will only run once a day at set time -->
    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>035600</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 4 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:57:00 (11:57 pm) and will only run once a day at set time -->
    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>035700</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 3 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:58:00 (11:58 pm) and will only run once a day at set time -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>035800</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 2 Minutes!</cmd>
    </job>


   <!-- this job will start at 23:59:00 (11:59 pm) and will only run once a day at set time -->
    <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>035900</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarts In 1 Minute!</cmd>
    </job>


   <!-- this job will start at 23:59:00 (11:59 pm) and will only run once a day at set time -->
    <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>035955</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restarting Now!</cmd>
    </job>


</Scheduler>

 

I will need to change these at some point.... <!-- this job will start at 23:45:00 (11:50 pm) and will only run once a day at set time -->  

I just want to see if this will work first :)

Link to comment
Share on other sites

This don't seem to work I tried the below code and nothing came up...

   <!-- this job will start at 5 Minutes server uptime and continue after each restart. -->
    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>000500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 this is a 5 minute uptime warning test!</cmd>
    </job>

I restarted the server after doing this in the file and waited the 5 minutes and nothing came up.

Link to comment
Share on other sites

Would you be able to post your BEC config for me please as it could be because the scheduler is not defined in the config correctly. But the above job should work 5 minutes into the server starting.

 

 

Here is my scheduler.xml if needed:

I have a job that will run 10 minutes into the server session and display the message every 30 minutes

 

 

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

<Scheduler>

    <!--Job will start 10 minutes into the server session and run every 30 minutes -->
    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>001000</start>
        <runtime>003000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart Every 6 Hours</cmd>
    </job>


    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Hour </cmd>
    </job>
    
    
    <job id='2'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:30:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 30 Minutes</cmd>
    </job>

    
    
    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 15 Minutes</cmd>
    </job>

    
    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 10 Minutes</cmd>
    </job>

    
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 5 Minutes</cmd>
    </job>
    
    
    
        <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>05:59:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Minute</cmd>
    </job>

    

    <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Hour </cmd>
    </job>
    
    
    <job id='8'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:30:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 30 Minutes</cmd>
    </job>

    
    
    <job id='9'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 15 Minutes</cmd>
    </job>

    
    <job id='10'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 10 Minutes</cmd>
    </job>

    
    <job id='11'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 5 Minutes</cmd>
    </job>
    
    
    
        <job id='12'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:59:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Minute</cmd>
    </job>
    
    
    
        <job id='13'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Hour </cmd>
    </job>
    
    
    <job id='14'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:30:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 30 Minutes</cmd>
    </job>

    
    
    <job id='15'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 15 Minutes</cmd>
    </job>

    
    <job id='16'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 10 Minutes</cmd>
    </job>

    
    <job id='17'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 5 Minutes</cmd>
    </job>
    
    
    
        <job id='18'>
        <day>1,2,3,4,5,6,7</day>
        <start>17:59:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Minute</cmd>
    </job>
    
    
    
            <job id='19'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:00:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Hour </cmd>
    </job>
    
    
    <job id='20'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:30:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 30 Minutes</cmd>
    </job>

    
    
    <job id='21'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 15 Minutes</cmd>
    </job>

    
    <job id='22'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 10 Minutes</cmd>
    </job>

    
    <job id='23'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 5 Minutes</cmd>
    </job>
    
    
    
        <job id='24'>
        <day>1,2,3,4,5,6,7</day>
        <start>23:59:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart In 1 Minute</cmd>
    </job>
    
    
    
    
    

</Scheduler>


 

 

 

 

Regards,

 

Liam Benfield

Swiftnode.net

Link to comment
Share on other sites

Hmm It is working... but for some reason the message shows after 6 and a half minutes instead of the 5 minutes that its supposed to xD any ideas on that one? thats really weird

 

I think its just a minior issue not all the time will it be spot on perfect but is a little odd. I have not really paid attention for my job 0 have not timed it. I will restart my server now and add a 5 minute up time message just like yours and see if it will appear at 5 minutes.

 

 

 

Regards,

 

Liam Benfield

Swiftnode.net

Link to comment
Share on other sites

Odd, My 5 minute message popped up at the same time as yours around 6 min 30 secs have passed just around there, I knew it was 6 mins looking at the debug console. Strange, I will try removing 1 minute and 30 secs on my jobs start time and time it manually to get around 5 mins.

 

Its not super accurate its about a 1 minute and a half too slow.

 

 

Job for referance:

 

    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>000500</start>
        <runtime>003000</runtime>
        <loop>0</loop>
        <cmd>say -1 This Server Will Restart Every 6 Hours</cmd>
    </job>

 

 

Regards,

 

Liam Benfield

Swiftnode.net

Link to comment
Share on other sites

Oh I dont know if this is normal but when I restart the server the server is instantly back up literally takes 2 seconds to restart and be ready to enter again that's super fast is this normal?

 

(Since your server is with us) Yes our servers only take about 2-3 seconds to restart. And 20 minutes and no messages, now thats really odd. Don't know what has happned there if its been working ok.

 

To get 5 minutes like nearly bang on 5 minutes I put 4 minutes on the start time and popped up and checked the stopwatch next to me about 5 minutes 6 seconds I think it was.

Link to comment
Share on other sites

Wow nice job that's close enough cant complain been out by 6 seconds. I just asked about the restart as I have never seen a restart from anyone that fast that's just epic :D Ok so I will go ahead and -1 minute from all my warnings and see how that goes.

 

I just cant get over the restart time that's insanely good :) your equipment is awesome tho I'm running around between 64 - 112fps 64 been the very lowest I drop to and the highest peak at 112 fps that's amazing :D I average around 85fps on your servers :O just incredible :)

Link to comment
Share on other sites

  • 3 weeks later...

hi guys

i tried to set the restrt in 4 hours instead of six.

it doesnt work eitherway(4 or 6)

can someone give me the file completed/?

the nitrado server uses this version

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

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