I'm trying to get the my debug monitor to show the correct time before server restarts. I have a BEC setup to restart every 4 hours.
06:00
10:00
14:00
18:00
22:00
02:00
Here Is the commands I have in place for it.
<!-- *** RESTARTS *** -->
<!-- 15 min to the 06.00am restart -->
<job id="0">
<time>05:45:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 15 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="1">
<time>05:50:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 10 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="2">
<time>05:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="3">
<time>05:58:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 2 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="4">
<time>05:59:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="5">
<time>06: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>
<!-- end 6 am restart -->
<!-- begin 15 mins until 10:00am restart -->
<job id="6">
<time>09:45:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 15 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="7">
<time>09:50:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 10 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="8">
<time>09:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="9">
<time>09:58:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 2 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="10">
<time>09:59:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="11">
<time>10: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>
<!-- end 10.00am restart -->
<!-- begin 15 mins until 14:00 restart -->
<job id="12">
<time>13:45:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 15 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="13">
<time>13:50:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 10 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="14">
<time>13:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="15">
<time>13:58:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 2 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="16">
<time>13:59:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="17">
<time>14: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>
<!-- end 14.00 restart -->
<!-- begin 15 mins until 18:00 restart -->
<job id="18">
<time>17:45:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 15 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="19">
<time>17:50:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 10 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="20">
<time>17:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="21">
<time>17:58:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 2 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="22">
<time>17:59:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="23">
<time>18: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>
<!-- end 18:00 restart -->
<!-- begin 15 mins until 22:00 restart -->
<job id="24">
<time>21:45:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 15 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="25">
<time>21:50:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 10 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="26">
<time>21:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="27">
<time>21:58:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 2 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="28">
<time>21:59:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="29">
<time>22: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>
<!-- end 22:00 restart -->
<!-- begin 15 mins until 02:00 restart -->
<job id="30">
<time>01:45:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 15 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="31">
<time>01:50:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 10 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="32">
<time>01:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="33">
<time>01:58:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 2 MINUTES.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="34">
<time>01:59:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE.</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="35">
<time>02: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>
<!-- end 02:00 restart -->
The custom debug screen Is what is slightly confusing me. Here is the script I'm using.
The debug Is showing the wrong time before restart and I'm a little confused on how I can change it. I've changed the (serverTime) to (06:00:00) to see if that would allow it to begin the cycle repeating itself every 240 minutes thus breaking it to the cycle but It completely made my debug screen disappear.
What can I do to make the debug show the correct time before restart?
Question
QCube
Hi There,
I'm trying to get the my debug monitor to show the correct time before server restarts. I have a BEC setup to restart every 4 hours.
- 06:00
- 10:00
- 14:00
- 18:00
- 22:00
- 02:00
Here Is the commands I have in place for it.The custom debug screen Is what is slightly confusing me. Here is the script I'm using.
The debug Is showing the wrong time before restart and I'm a little confused on how I can change it. I've changed the (serverTime) to (06:00:00) to see if that would allow it to begin the cycle repeating itself every 240 minutes thus breaking it to the cycle but It completely made my debug screen disappear.
What can I do to make the debug show the correct time before restart?
Cheers.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now