My server keeps crashing every night around 3-6am, and doesn't come back up until I wake up and reboot it. Any plugins to help with this sort of thing?
Crash detection / auto-reboot
Discussion in 'Reign of Kings Discussion' started by Roflbear, Oct 30, 2015.
-
Wulf Community Admin
Plugins can't detected if your server crashed, as they wouldn't be loaded if it did. You'd need to use an external script. We provide a basic example with each Oxide build that will restart if the old process closes.
-
How do i go about getting an external script?
[DOUBLEPOST=1446273875,1446233925][/DOUBLEPOST]What's the script some servers have that announce reboots and count them down? -
Wulf Community Admin
-
Hello,
Restart on Crash seems to work fine for me. It is a very simple and small program. Link to authors website: Automatically Restart Crashed Or Hanged Applications | W-Shadow.com
Make a bat file like this:
Code:@echo offC:\Server\ROK.exe -batchmode -nographics -silent-crashes
- Monitor RoK.exe
- Put a tick for "It's not responsing to Windows messages"
- Put a tick for "It isn't running"
- Put a tick for "Wait 5 seconds and double-check" (I made it 5 seconds, you can change this)
- Put a tick for "Kill the process" After a crash
- Put a tick for "Execute a command" and fill it with the BAT file you created earlier.
- Set "Working directory" as the folder that your RoK.exe is located at.
All set!
ALSO Make sure you have restartTime in your ServerSetting.cfg set to 2 or 3 hours. RoK tends to have memory leaks a lot along with lots of other problems when its left open for more than 2 hours. Restart on Crash only helps when your server crashes for other reasons between auto restarts. -
You are a legend, however, I think this may not work as it's a hosted server through Vilayer? Sorry I didn't mention this before
-
Wulf Community Admin
-
You can open a ticket with your host and request a custom startup script be installed for you. Some hosts will do it. Some won't. Not sure if naming sites is allowed, but fragnet.net has great support and has been able to meet all my requests. Custom startup script being one. They are a little more expensive, but the support is much better than several others I have tried.