Jump to content
Sign in to follow this  
Siggy (DayZ)

Server Restart Help

Recommended Posts

What am i doing wrong? The restart messages are popping up, but the server ain't restarting at that time it will restart sometime later, i am 100% positive i have the restart messages set to broadcast at the right time, i am using the ingame time, is there another clock i should be looking at to set these because it is 100% right if i am using the server time.

<?xml version="1.0"?>
<Scheduler>

<!-- INTERNAL COMMANDS -->
<job id="0">
<time>05:50</time> <!-- Restart in 10 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 10 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="1">
<time>05:55</time> <!-- Restart in 5 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 5 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="2">
<time>11:50</time> <!-- Restart in 10 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 10 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="3">
<time>11:55</time> <!-- Restart in 5 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 5 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="4">
<time>17:50</time> <!-- Restart in 10 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 10 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="5">
<time>17:55</time> <!-- Restart in 5 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 5 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="6">
<time>23:50</time> <!-- Restart in 10 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 10 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="7">
<time>23:55</time> <!-- Restart in 5 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 5 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

</Scheduler>

Server restarts at 6 AM 12 PM 6 PM 12 AM, The timezone is +3 GMT, can somebody explain what i am doing wrong.

Edited by Siggy

Share this post


Link to post
Share on other sites

You are missing the command to restart the server. You need to add this command to restart the server.


-<job id="7">
<time>17:00</time>
<!-- run at 5'o Clock in the morning -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>
</job>

adjust the time and the job id so it fits you.

You can read about it here

http://ibattle.org/i...-the-scheduler/

Edited by marrr

Share this post


Link to post
Share on other sites

Instead of having #shutdown shouldn't i put #restart there because i want it to restart and not shutdown? And does that mean it will restart exactly at that time?

 <!-- INTERNAL COMMANDS -->
<job id="0">
<time>05:50</time> <!-- Restart in 10 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 10 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="1">
<time>05:55</time> <!-- Restart in 5 minutes -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 5 minutes, don't forget to save your tents and vehicles</cmd>
<cmdtype>0</cmdtype>
</job>
-<job id="2">

<time>06:00</time> <!-- run at 6'o Clock in the morning -->
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>#restart</cmd>
<cmdtype>0</cmdtype>
</job>

Will that work? am i doing it right now or what?

Edited by Siggy

Share this post


Link to post
Share on other sites

You need to use the #shutdown command. I think the #restart command only restarts the mission. Are you using TCadmin or FireDaemon to control the server? This will see that the server is no longer running and start it back up.

Share this post


Link to post
Share on other sites

I am using TCadmin, so i use #shutdown right?

Yes, the TCA watchdog process will start it again.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×