Desire Posted June 10, 2014 Report Share Posted June 10, 2014 I use BEC. For some reason, this isn't restarting the server after 2 hours! Code: <?xml version="1.0"?> <Scheduler> <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler --> <!-- Restart Messages --> <job id="0"> <time>010000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 1 hour</cmd> <cmdtype>0</cmdtype> </job> <job id="1"> <time>013000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 30 minutes</cmd> <cmdtype>0</cmdtype> </job> <job id="2"> <time>015000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 10 minutes</cmd> <cmdtype>0</cmdtype> </job> <job id="3"> <time>015500</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 5 minutes</cmd> <cmdtype>0</cmdtype> </job> <job id="4"> <time>015900</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 60 seconds, logout to avoid gear loss</cmd> <cmdtype>0</cmdtype> </job> <job id="5"> <time>015930</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 30 seconds</cmd> <cmdtype>0</cmdtype> </job> <job id="6"> <time>015950</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 10 seconds</cmd> <cmdtype>0</cmdtype> </job> <!-- run every 1h with a 5min delay on startup --> <job id="7"> <time>0120000</time> <delay>000500</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 ServerIP: 216.231.138.224:2302 | Website: http://www.plasmagaminggm.enjin.com | Tell your friends! </cmd> <cmdtype>0</cmdtype> </job> <!-- RESTART SERVER --> <job id="8"> <time>020000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#restart</cmd> <cmdtype>1</cmdtype> </job> </Scheduler> Please help <3 Link to comment Share on other sites More sharing options...
0 Friendly Posted June 10, 2014 Report Share Posted June 10, 2014 Dont do #restart as it only restarts the mission and not the server, Do #shutdown and then for job id="9" make it call a .bat file which is provided to start the server and what you are probably already using. Example: <job id="4"> <time>08: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> <job id="5"> <time>08:00:00</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\AStartNapf.bat</cmd> <cmdtype>1</cmdtype> </job> Link to comment Share on other sites More sharing options...
0 Desire Posted June 10, 2014 Author Report Share Posted June 10, 2014 Dont do #restart as it only restarts the mission and not the server, Do #shutdown and then for job id="9" make it call a .bat file which is provided to start the server and what you are probably already using. Example: <job id="4"> <time>08: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> <job id="5"> <time>08:00:00</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\AStartNapf.bat</cmd> <cmdtype>1</cmdtype> </job> Do you know where I would be able to locate a bat file on a vilayer server? Link to comment Share on other sites More sharing options...
0 Friendly Posted June 10, 2014 Report Share Posted June 10, 2014 Do you know where I would be able to locate a bat file on a vilayer server? You cant do that on a hosted server so we will have to work around that. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1) You need to open your server in the ACP. You will see at the top of the page you will see "Scheduled Tasks", click on this and then select the new option. From the drop down menu select "Scheduled Restart" and then click New. 2) Give Your Scheduled Restart a name, then select the restart type; One Time = This will run one at the time you select, you will need to re-enable this each time . Daily = This will run every day at the time you select. Weekly = This will run once a week on the day/time that you select. Monthly = This will run once a month on the day/time that you select. You then need to pick a date and time for your restart to use, either type the date and time in the box using the following format or press the Calander/Clock icons for a popup; MM/DD/YYYY HH:MM Select how often you would like the restart to Recur. The next step is optional, you can choose if you would like the task to be repeated. This allows you to have one restart each day happen multiple times rather than just once a day. So on the Repeat Every box, you need to select how often the task will be repeated, so if you select 6 hours then every six hours from the time you have selected the server will run this restart. Note: You must have For: set to 24Hours or the restart will stop repeating itself before the day has finished. Click "Save" and you are good to go. Link to comment Share on other sites More sharing options...
0 Friendly Posted June 10, 2014 Report Share Posted June 10, 2014 Also remove the #restart and/or #shutdown from your scheduler.xml Link to comment Share on other sites More sharing options...
0 Desire Posted June 10, 2014 Author Report Share Posted June 10, 2014 Also remove the #restart and/or #shutdown from your scheduler.xml Thank you! Friendly 1 Link to comment Share on other sites More sharing options...
Question
Desire
Please help <3
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now