Jump to content
  • 0

[HELP] Script Kiddies Able To Break Server Restarts


DangerRuss

Question

So I've been having trouble with script kiddies that are able to break my server restarts. 

They seem to be able to keep the server on night time permanently and break server restarts completely. I have to manually restart the server for it to fix.

Im wondering if anyone has any ideas on something I could run in the background to close Arma and BEC if it's been running without a restart for X amount of hours. Something that wouldnt close the bat file I use to launch the server, but would terminate Arma and BEC so that the bat file restarts the server. My start bat file is already set up to automatically restart the server if it's been closed (as long as the bat file isn't closed) but I need something to force close Arma if its' been running for say 3 hours straight. Any ideas?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

I kill the dayz server with BEC, and firedaemon notices its down and kicks it back up...If you want help setting up firedaemon PM me...

If my box restarts for any reason, firedaemon starts on bootup and starts all my servers, database, teamspeak and rcon tools.

Link to comment
Share on other sites

  • 0

I think eBay is closer to the mark. The server automatically uses the shutdown command with BEC but somehow these guys are able to completely break it. It won't restart until i manually kill the server. So idk how firedaemon could see that my server is running for too long and shut it down? 

I suppose a restart bat would hurt bit I'd need to find out how to make it run on a schedule

Link to comment
Share on other sites

  • 0

He basically gave you enough info to implement it in  your own server's scheduler.xml for BEC. Since it's a little confusing I'll just post my scheduler and restart bat file.

 

Scheduler.xml - 4 Hour Restarts

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Scheduler>
	<job id="0">
		<start>000100</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
        <cmd>#unlock</cmd>    
		<cmdtype>0</cmdtype>			
	</job>		
	<job id="1">
		<start>030000</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SERVER RESTART IN 1 HOUR.</cmd>
		<cmdtype>0</cmdtype>			
	</job>		
	<job id="2">
		<start>031500</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SERVER RESTART IN 45 MINUTES.</cmd>
		<cmdtype>0</cmdtype>			
	</job>	
	<job id="3">
		<start>033000</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SERVER RESTART IN 30 MINUTES.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	<job id="4">
		<start>034500</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SERVER RESTART IN 15 MINUTES.</cmd>
		<cmdtype>0</cmdtype>			
	</job>		
	<job id="5">
		<start>035000</start>
		<runtime>000000</runtime>
		<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="6">
		<start>035500</start>
		<runtime>000000</runtime>
		<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="7">
		<start>035700</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SERVER RESTART IN 3 MINUTES LOG OFF NOW!!!!!</cmd>
		<cmdtype>0</cmdtype>			
	</job>		
	<job id="8">
		<start>035900</start>
		<runtime>000000</runtime>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 SERVER RESTART IN 1 MINUTE LOG OFF NOW!!!!!</cmd>
		<cmdtype>0</cmdtype>			
	</job>
    <job id="9">
        <start>040000</start>
        <runtime>000000</runtime>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop> 
        <cmd>#shutdown</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
	<job id="10">
		<start>040000</start>
		<runtime>000000</runtime> 
		<day>1,2,3,4,5,6,7</day> 
		<loop>0</loop> 
		<cmd>C:\BEC\Config\restart_server.bat</cmd> 
		<cmdtype>1</cmdtype> 
	</job>
</Scheduler>

restart_server.bat - it's a little sloppy, I never felt like cleaning it up

@echo off
timeout 90

:KILL_SERVER
rem kill the task
taskkill /im arma3server.exe 2> nul
rem check the exit status
if errorlevel 128 goto DONE_SERVER
goto Start_Server

:Start_Server
cd\
cd "C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead"
start start_A2Server.bat ::this bat also start BEC about 30 seconds after the server!
goto KILL_BEC

:KILL_BEC
rem kill the task
taskkill /im bec.exe 2> nul
rem check the exit status
if errorlevel 128 goto exit_bat
goto exit_bat

:exit_bat
Exit

 

Link to comment
Share on other sites

  • 0

you can set times with firedeamon to shut down the server.  I never took the time to figure it out with my arma 3 servers, so i had fire deamon do it.  Every 4 hours it would shut it down and start it back up

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...