gh0stpirate Posted October 8, 2014 Report Share Posted October 8, 2014 Hey guys, trying hard to find out the problem, checked, triple checked directories etc. ran my "restart.bat" by itself, doesnt throw any errors and functions. Everything functions perfectly except for starting back up. it shuts down on schedule but doesn't start back up :( Here are the included configs, used UEP BEC installer. Happy with default schedule. scheduler.xml= http://pastebin.com/W4kW2cr6 contents of my start.bat= http://pastebin.com/i2sNySne contents of my restart.bat= http://pastebin.com/GL3mWyga Everything regarding BEC, battleye etc are completely default to my knowledge, i dont like bec, so i havent messed with it. i just want my 3 hr restarts :) Link to comment Share on other sites More sharing options...
gh0stpirate Posted October 8, 2014 Author Report Share Posted October 8, 2014 Bump Link to comment Share on other sites More sharing options...
Scaramanga Posted October 8, 2014 Report Share Posted October 8, 2014 Add a sleep to the start of your restart.bat and launch it before you run #shutdown. Link to comment Share on other sites More sharing options...
gh0stpirate Posted October 8, 2014 Author Report Share Posted October 8, 2014 I'm going to let it run overnight to make sure, but i think it worked!! thank you so much! does the creator of UEP BEC installer know that his default schedule.xml isn't working anymore? Link to comment Share on other sites More sharing options...
gh0stpirate Posted October 8, 2014 Author Report Share Posted October 8, 2014 Well, actually, its not all good. for some reason, its not killing the old server process, woke up to find 2 instances running :/ the problem has got to be in one of the batch files! anyone have any clues? Link to comment Share on other sites More sharing options...
Scaramanga Posted October 8, 2014 Report Share Posted October 8, 2014 On my phone now so reading the xml and cmds is a bitch. You sure you didn't forgot to edit one of the restarts? Anyways it is also a good idea to kill your server process with taskkill in the restart script after a while just in case. How long is the delay in your cmd and the xml? If the restart script kills BEC before #shutdown is ran you'll get problems. Link to comment Share on other sites More sharing options...
Scaramanga Posted October 8, 2014 Report Share Posted October 8, 2014 Also I suggest you use uptime to schedule your restarts instead of doing it at certain times. You'll get less xml config and avoid server restarts after short uptime if the last restart was not planned. Link to comment Share on other sites More sharing options...
gh0stpirate Posted October 8, 2014 Author Report Share Posted October 8, 2014 i double checked the schedule.xml, all are edited. I'd love to use uptime, really don't care when it restarts, so long as it does. Im liking the 3 hour mark. could you post your xml perhaps? thank you so much for the help thus far man, appreciate it. i cant stand this stuff :/ once this is working, ill never open it again lmao EDIT: my delay is 15 secs in startup, and 10 seconds in restart. timed it a few times, leaves lots of headroom. Link to comment Share on other sites More sharing options...
Scaramanga Posted October 8, 2014 Report Share Posted October 8, 2014 Here you go: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <Scheduler> <job id="0"> <time>024500</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 15 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="1"> <time>025000</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 10 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="2"> <time>025500</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 5 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="3"> <time>025800</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 2 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="4"> <time>025900</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 1 minute. Disconnect ASAP to not lose inventory!"</cmd> <cmdtype>0</cmdtype> </job> <job id="5"> <time>025930</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 30 seconds. Disconnect now to not lose inventory!"</cmd> <cmdtype>0</cmdtype> </job> <job id="6"> <time>030000</time> <delay>000020</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>c:\BEC\config\restart.cmd</cmd> <cmdtype>1</cmdtype> </job> <job id="7"> <time>030015</time> <delay>000020</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#shutdown</cmd> <cmdtype>0</cmdtype> </job> <job id="8"> <time>003000</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 "Blahblahblah generic server info every half hour"</cmd> <cmdtype>0</cmdtype> </job> </Scheduler> Link to comment Share on other sites More sharing options...
gh0stpirate Posted October 8, 2014 Author Report Share Posted October 8, 2014 Here you go: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <Scheduler> <job id="0"> <time>024500</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 15 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="1"> <time>025000</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 10 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="2"> <time>025500</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 5 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="3"> <time>025800</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 2 minutes"</cmd> <cmdtype>0</cmdtype> </job> <job id="4"> <time>025900</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 1 minute. Disconnect ASAP to not lose inventory!"</cmd> <cmdtype>0</cmdtype> </job> <job id="5"> <time>025930</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 "Server will restart in 30 seconds. Disconnect now to not lose inventory!"</cmd> <cmdtype>0</cmdtype> </job> <job id="6"> <time>030000</time> <delay>000020</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>c:\BEC\config\restart.cmd</cmd> <cmdtype>1</cmdtype> </job> <job id="7"> <time>030015</time> <delay>000020</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#shutdown</cmd> <cmdtype>0</cmdtype> </job> <job id="8"> <time>003000</time> <delay>000010</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 "Blahblahblah generic server info every half hour"</cmd> <cmdtype>0</cmdtype> </job> </Scheduler> start tag migging where id=0 copied and pasted, (changed the directory to the restart however) Link to comment Share on other sites More sharing options...
Gr8 Posted October 11, 2014 Report Share Posted October 11, 2014 <cmd>C:\Users\gh0stpirate\Desktop\Epoch Server\restart.bat</cmd> Links with spaces confuses BEC. Avoid them. Link to comment Share on other sites More sharing options...
ElDubya Posted October 12, 2014 Report Share Posted October 12, 2014 I use the #restart command rather than the #shutdown one. I wasn't sure if #shutdown would also start it back up. Link to comment Share on other sites More sharing options...
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