Nedrix Posted May 28, 2014 Report Share Posted May 28, 2014 Hi all I wanted to know how I would setup auto restarts with BEC I am using the host vert hosting if you could help me out that would be great also I would like the server to restart every 3 hours with several warnings :) Link to comment Share on other sites More sharing options...
0 raymix Posted May 28, 2014 Report Share Posted May 28, 2014 Don't use Restart scheduler on their website unless you want static restarts at specific time of day, use #shutdown inside XML instead if you want 3h restarts timer to run from point when server has been started (in case of early restarts for updates as example). Before we start, please keep in mind that 00:00:00 - this method is for static time - if you want restart at 3PM, set it to 15:00:00, etc. 000000 - think of this as a dynamic time, or a timer since server has started. Format is simple HHMMSS, so to restart server in 3 hours, you use 030000 with cmd #shutdown. To send a 10 minute message before restart, simply use 025000 (2 hours 50 mins) with say -1 "text". Keep it 6 digits! Do not use #restart, that method will restart mission only without kicking people and will not query database, so bases and vehicles will dissapear. With theory out of our way, here's how the code looks like BEC\Config\Scheduler.xml <?xml version="1.0"?> <Scheduler> <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler --> <!-- Restart Messages --> <job id="0"> <time>025000</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="1"> <time>025500</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="2"> <time>025900</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="3"> <time>025930</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="4"> <time>025950</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="5"> <time>010000</time> <delay>000500</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 ServerIP: 123.123.123.123:2342 | Website: domain.com | Teamspeak: myawesomets3.com </cmd> <cmdtype>0</cmdtype> </job> <!-- RESTART SERVER --> <job id="6"> <time>030000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#shutdown</cmd> <cmdtype>0</cmdtype> </job> </Scheduler> Test out with shorter loop message at about 000005 first to see if BEC is running properly, I had problem with Vert earlier, was missing bans.txt file in BE folder, so BEC did not start and there were no errors. Just a heads up, mate. Vert is an awesome hosting, support is hands down the best, and I've used vilayer and dayz.st, those 2 don't even stand close in terms of server performance and speed of support, good choice. KEEP JOB ID's INCREMENTAL!!! Start with 0 and climb up from there. For example if you delete line from code above, make sure that job IDs are properly in sequence. Nedrix 1 Link to comment Share on other sites More sharing options...
0 Nedrix Posted May 28, 2014 Author Report Share Posted May 28, 2014 Don't use Restart scheduler on their website unless you want static restarts at specific time of day, use #shutdown inside XML instead if you want 3h restarts timer to run from point when server has been started (in case of early restarts for updates as example). Before we start, please keep in mind that 00:00:00 - this method is for static time - if you want restart at 3PM, set it to 15:00:00, etc. 000000 - think of this as a dynamic time, or a timer since server has started. Format is simple HHMMSS, so to restart server in 3 hours, you use 030000 with cmd #shutdown. To send a 10 minute message before restart, simply use 025000 (2 hours 50 mins) with say -1 "text". Keep it 6 digits! Do not use #restart, that method will restart mission only without kicking people and will not query database, so bases and vehicles will dissapear. With theory out of our way, here's how the code looks like BEC\Config\Scheduler.xml <?xml version="1.0"?> <Scheduler> <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler --> <!-- Restart Messages --> <job id="0"> <time>025000</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="1"> <time>025500</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="2"> <time>025900</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="3"> <time>025930</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="4"> <time>025950</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="5"> <time>010000</time> <delay>000500</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 ServerIP: 123.123.123.123:2342 | Website: domain.com | Teamspeak: myawesomets3.com </cmd> <cmdtype>0</cmdtype> </job> <!-- RESTART SERVER --> <job id="6"> <time>030000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#shutdown</cmd> <cmdtype>0</cmdtype> </job> </Scheduler> Test out with shorter loop message at about 000005 first to see if BEC is running properly, I had problem with Vert earlier, was missing bans.txt file in BE folder, so BEC did not start and there were no errors. Just a heads up, mate. Vert is an awesome hosting, support is hands down the best, and I've used vilayer and dayz.st, those 2 don't even stand close in terms of server performance and speed of support, good choice. KEEP JOB ID's INCREMENTAL!!! Start with 0 and climb up from there. For example if you delete line from code above, make sure that job IDs are properly in sequence. Thanks for the awesome reply mate, yeah I heard that Vert was amazing thanks so much anyway bro :) Link to comment Share on other sites More sharing options...
0 STENCHOVDETH Posted June 3, 2014 Report Share Posted June 3, 2014 Don't use Restart scheduler on their website unless you want static restarts at specific time of day, use #shutdown inside XML instead if you want 3h restarts timer to run from point when server has been started (in case of early restarts for updates as example). Before we start, please keep in mind that 00:00:00 - this method is for static time - if you want restart at 3PM, set it to 15:00:00, etc. 000000 - think of this as a dynamic time, or a timer since server has started. Format is simple HHMMSS, so to restart server in 3 hours, you use 030000 with cmd #shutdown. To send a 10 minute message before restart, simply use 025000 (2 hours 50 mins) with say -1 "text". Keep it 6 digits! Do not use #restart, that method will restart mission only without kicking people and will not query database, so bases and vehicles will dissapear. With theory out of our way, here's how the code looks like BEC\Config\Scheduler.xml <?xml version="1.0"?> <Scheduler> <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler --> <!-- Restart Messages --> <job id="0"> <time>025000</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="1"> <time>025500</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="2"> <time>025900</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="3"> <time>025930</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="4"> <time>025950</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="5"> <time>010000</time> <delay>000500</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 ServerIP: 123.123.123.123:2342 | Website: domain.com | Teamspeak: myawesomets3.com </cmd> <cmdtype>0</cmdtype> </job> <!-- RESTART SERVER --> <job id="6"> <time>030000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#shutdown</cmd> <cmdtype>0</cmdtype> </job> </Scheduler> Test out with shorter loop message at about 000005 first to see if BEC is running properly, I had problem with Vert earlier, was missing bans.txt file in BE folder, so BEC did not start and there were no errors. Just a heads up, mate. Vert is an awesome hosting, support is hands down the best, and I've used vilayer and dayz.st, those 2 don't even stand close in terms of server performance and speed of support, good choice. KEEP JOB ID's INCREMENTAL!!! Start with 0 and climb up from there. For example if you delete line from code above, make sure that job IDs are properly in sequence. @Raymix So did you just inject a bans.txt file into BEC and fixed issue? Link to comment Share on other sites More sharing options...
0 raymix Posted June 3, 2014 Report Share Posted June 3, 2014 No, Vert hosting support guys just added blank bans.txt file trough file manager and reported back that it was an issue. I couldn't figure out the problem because there were no errors, so instead of spending hours googling, I just made a ticked, problem solved in less than 5 minutes... amazing host Link to comment Share on other sites More sharing options...
0 STENCHOVDETH Posted June 4, 2014 Report Share Posted June 4, 2014 Agreed I use them for 2 of my Epoch Servers and cannot speak highly enough of them. ;) Link to comment Share on other sites More sharing options...
0 cheech Posted August 14, 2014 Report Share Posted August 14, 2014 hi all, how can i use server messages WITHOUT BEC enabled? Thanks Cheers Link to comment Share on other sites More sharing options...
0 raymix Posted August 14, 2014 Report Share Posted August 14, 2014 hi all, how can i use server messages WITHOUT BEC enabled? Thanks Cheers MOTD messages. Look into your server config files, same file where you change server name. Link to comment Share on other sites More sharing options...
Question
Nedrix
Hi all I wanted to know how I would setup auto restarts with BEC I am using the host vert hosting if you could help me out that would be great also I would like the server to restart every 3 hours with several warnings :)
Link to comment
Share on other sites
7 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