Jump to content
Sign in to follow this  
domistyle

Watchdog - Protect your server against crashes!

Recommended Posts

Info

Watchdog is a simple console application I wrote to protect my server against crashes.

I thought I would share it here, maybe someone else can use it.

Of course, it is for dedicated servers only.

It works far better then any batch file out there.

* Checks PID, not process name (= Multi server support)

* Starts BEC too (if enabled)

* You decide the interval to check if server is still running

* No unnecessary hard coded wait times, BEC will start as soon as server is up

* Use in combination with BEC to auto restart your server every 6 hours

Installation

1. Download Watchdog

2. Place in server root directory together with arma2oaserver.exe

3. Edit config.txt

4. Start Watchdog.exe

Note: Watchdog will always start the beta from Expansion/beta/arma2oaserver.exe!

Note: Since BEC is a pain in the ass to start with parameters you need to provide your BEC path and config file to use in bec.bat which is included in the archive with Watchdog.

Tell me if it works for you, didn't have enough time to fully test it.

Upcoming features

* Ban & Script merge on each restart

* Ability to provide a servername in config so there is a difference if you are running more servers

Edited by DomiStyle

Share this post


Link to post
Share on other sites

This would be much tidier than just running a batch file.

I gave it a try and found that it didn't seem to be loading the server config properly.

I am running a private hive, but changed the parameters to match and it still didn't seem to work.

Is there any option to make it echo the file that it is launching, etc, so I can try to find out why it isn't loading my config.

My config file is as follows:

arguments=-port=2302 -config=bliss\config.cfg -cfg=bliss\basic.cfg -profiles=Bliss -name=Bliss -mod=@DayZ;@Bliss; -cpuCount=2

interval=120000

startBEC=true

It basically looks like it is simply running a blank config file, rather than reading the config and cfg from bliss\

Edited by Iteration

Share this post


Link to post
Share on other sites

Good to see someone is making something close to mine. Now just need support log rotation and you will have something like mine :D

Share this post


Link to post
Share on other sites

i'm getting the same problem as Iteration - BEC won't connect to the server after it's auto launched and dayZ commander shows the server's actual hostname instead of what i've set for hostname= in the config.

Share this post


Link to post
Share on other sites

Make sure the server is reading the config file for the server. Also make sure bec is either using 127.0.0.1 or your servers ip address

Share this post


Link to post
Share on other sites

It is fairly obvious that it isn't reading the configs, I'm just after some way to find out what it is actually loading. (Which would be easy to find if it just did an echo of the command to the console)

Share this post


Link to post
Share on other sites

Hey, is it possible that your Watchdog program still works/exists? The link doesn't work. I've been trying to find a suitable replacement to my clutter of batch files.

Thanks!

Share this post


Link to post
Share on other sites

Hey, is it possible that your Watchdog program still works/exists? The link doesn't work. I've been trying to find a suitable replacement to my clutter of batch files.

Thanks!

It has been outdated for a very long time, sorry.

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  

×