Jump to content
dizzymagoo

DayZ Server Auto Restart - Multiple Methods - **Version 3.3.1

Recommended Posts

Edit:

I have no idea what happened, and will look at it tonight as what caused it to do that, I had your earlier version running just fine in the same place, it didn't allow me to make any alterations to the file settings when I ran it it just started opening hundreds of hive files attempting to connect.

Share this post


Link to post
Share on other sites

Seems to be working for me and many others. Rather than throwing profanity out and complaining. Why not provide me with some useful information so I can troubleshoot the problem?

Share this post


Link to post
Share on other sites

Seems to be working for me and many others. Rather than throwing profanity out and complaining. Why not provide me with some useful information so I can troubleshoot the problem?

This. If there is a problem report it to the creator, so far this thread has been nothing but good coming out of it.

Share this post


Link to post
Share on other sites

Thank you Legacy. Support from Mods always helps a bunch! And if you were the one who stickied this. Thank you :)

Share this post


Link to post
Share on other sites

Either way. Thank you very much. It just kinda slammed on me and I didn't expect it to be "supported" off the bat. Haha so I revamped it. Seems to be functioning mostly well.

Share this post


Link to post
Share on other sites

Ignore LVG, seems to be working and I'm running it on our server atm. I'll give you an update once I get more information in my logs (and see if it properly restarts server/hive etc). Not sure if it will crash, but will at least check the persistent restarts etc. Seems good so far, although it hasn't restarted yet so will post back tomorrow sometime to see if it restarted things properly etc.

Like I said, looks good so far though! Much appreciated.

Also, has there been any official response on if we should restart the server every time we restart the hive? Like do we need hive and server restarts to be set to the same? Or is it fine to restart the hive without restarting the server?

Edit: Just tested it, it definitely starts the hive and the server properly. Will get back to you on scheduled restart times and crashes. Again, will get back to you tomorrow.

Share this post


Link to post
Share on other sites

Working in windows errors will be a lot of work. Its something new i've never done before. I have tomorrow off work so i'll try to get some progress tomorrow.

Share this post


Link to post
Share on other sites

Awesome, just watched it auto-restart. Another cool feature you might consider for the future is getting it to log in to the server via RCON and send out a message like 5 minutes before restarting.

Share this post


Link to post
Share on other sites

Any idea if there is a way to have it auto start my Battleeye Extended Controls? I have some settings on there that I like to have running (auto lobbysit kick, ascii chat enforcement, etc), and for some reason it shuts down when the server shuts down. Maybe there is a setting on the BEC app.

Share this post


Link to post
Share on other sites

It can be done fairly easy. Just need to get my priorities straight first. Haha

Share this post


Link to post
Share on other sites

Just had an out of memory error in the AO server, would be great to somehow detect that error box and handle that as well. Looks like i'm going to have to setup regular restarts every x hours.

Share this post


Link to post
Share on other sites

Any idea if there is a way to have it auto start my Battleeye Extended Controls? I have some settings on there that I like to have running (auto lobbysit kick' date=' ascii chat enforcement, etc), and for some reason it shuts down when the server shuts down. Maybe there is a setting on the BEC app.

[/quote']

This would be awesome to have, and thanks for making this program btw!

Share this post


Link to post
Share on other sites

Blackfuse. Can you send me the name of the executable for the BEC? and where its located?

Share this post


Link to post
Share on other sites

Blackfuse. Can you send me the name of the executable for the BEC? and where its located?

BEC can be extracted anywhere (for instance I have it in a folder on my desktop, and I also don't run the BEC.exe, I created a seperate one called RUNBEC.exe to run it with the proper file (idk if there's a different way, but mine's working so...) lol.

Is there a way just to specify a file that we want to be restarted whenever the server restarts? Like I said, BEC can be extracted anywhere so there's no way to know where it *should* be.

Also an update since I said I'd give it, seems to be working great. Much props!

Share this post


Link to post
Share on other sites

Ya, as Bob said, it's anywhere on your filesystem. C:\BEC\Bec.exe is where mine currently is. And it also needs to be run with a commandline argument: C:\BEC\Bec.exe -f Config.cfg, My suggestion is just have an optional extra program restart.


Also, It has now restarted itself 4 times 100% perfectly. Very happy with this app!

Share this post


Link to post
Share on other sites

Great app so far :) ... Seems to be functioning nicely, set hive restarts at every hour and server restarts at every 8 hours.

Only a few suggestions:

- allow an argument to the exe that starts the servers right away without having to go through the main menu

- display the time to restart hive/server in the status window

- allow for additional programs to be restarted with the server ex: BEC

- alert players of the server when a game server restart is near so they can find a safe place

Awesome work!

Share this post


Link to post
Share on other sites

Just had an out of memory error in the AO server' date=' would be great to somehow detect that error box and handle that as well. Looks like i'm going to have to setup regular restarts every x hours.

[/quote']

There is a way to detect that error box. It involves changing registry keys. Here's how:

1. Open regedit.exe (Start-> regedit)

2. Navigate to the following:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Windows

3. Find ErrorMode and double-click it, then change the value to 2

HSXN2.png

4. Navigate regedit to the following:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting

5. Find DontShowUI, double-click it, then change the registry value from 0 to 1

Rqzes.png

Note that step 4 may need to be executed on multiple users if multiple user accounts are used on the server. Boom. No more error messages requiring user intervention.

Share this post


Link to post
Share on other sites

Yeah Mojo I read about that on another website. Was looking into it, but I don't trust my program going into the registry on a server. The last thing I want is for the server to have issues because of my program. I woke up this morning and my server had crashed with an error box so clearly this needs to be added. And as for all the other things people suggested. They're fixed/finished just haven't publish it yet.

Share this post


Link to post
Share on other sites

Yeah Mojo I read about that on another website. Was looking into it' date=' but I don't trust my program going into the registry on a server. The last thing I want is for the server to have issues because of my program. I woke up this morning and my server had crashed with an error box so clearly this needs to be added. And as for all the other things people suggested. They're fixed/finished just haven't publish it yet.

[/quote']

Awesome man, You are putting a ton of work into this, myself, and I'm sure plenty of other users, really appreciate it.

Share this post


Link to post
Share on other sites

Yeah Mojo I read about that on another website. Was looking into it' date=' but I don't trust my program going into the registry on a server. The last thing I want is for the server to have issues because of my program. I woke up this morning and my server had crashed with an error box so clearly this needs to be added. And as for all the other things people suggested. They're fixed/finished just haven't publish it yet.

[/quote']

For sure, for sure. Just letting people know there's a workaround.

Share this post


Link to post
Share on other sites

I think I have it working! Booyah! Running some final testing right now, then a little clean up, then new version release(And yes it kills the server if it stops responding in ANY way).


Alright it seems to be working just as planned. Basically what it does is it checks if the interface of the server is running(The Console). It checks each time it does a servercheck. If it comes back as not responding 3 times in a row, then it will kill it and restart it. So if your server check interval is set to 1 minute, it will take 4 minutes of no response before it will officially kill and restart it.

http://www.theprogamers.com/stuff/ServerMonitor.exe

Share this post


Link to post
Share on other sites

I think something happened with the program.

It started making up its own numbers for what the intervals were (which were ENTIRELY different than what I had input-example I'd put in 120-mins for hive restart-it would end up with 720000).

I went in and edited the settings manually and then when I try to run it it spams opening BEC. (Over and over and over)-didn't seem to do it before I edited the config so idk lol. (It didn't happen-and doesn't once I reconfigured it) so it's not an urgent issue, but yeah when I edited the config (I didn't remove the runbec=1 or anything, I ONLY edited the numbers associated with the intervals) and it started spam opening it.

Just thought I'd let you know.

Edit: Yeah it doesn't run Bec quite properly, it was already running, then it opened like 8 more prompts because it wasn't running. Could it have to do with the fact that I tell it to run my RUNBEC shortcut (which just runs Bec with -f srv.cfg) so ultimately it's just Bec that's running but it's looking for RUNBEC or something?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×