Jump to content
  • 0

auto restart dos not work


rashmandash

Question

Hi,

i have some trouble with the auto restart. It would be grate if someone could explain me in general how it works. In the epochhive/epochconfig file i set the serverrestart to "true" and set the timer. After the time is over i get a Massage in the logs: "server restart now" but nothing happens. I've red somthing about the BEC but this service seems to be down. Another thing i've red is to use a scheduler in combination with a batch file. But there are so many out in the WWW. i do not know which i should use or how to.

 

thanks for any help!!!

Rashmandash

 

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

I'd also be interested in the answer to this. We have the scheduler set as follows:

<job id="0">

<day>1,2,3,4,5,6,7</day>

<start>055500</start>

<runtime>000100</runtime>

<loop>0</loop>

<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES</cmd>

</job>

<job id="1">

<day>1,2,3,4,5,6,7</day>

<start>055900</start>

<runtime>000100</runtime>

<loop>0</loop>

<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE</cmd>

</job>

<job id="2">

<day>1,2,3,4,5,6,7</day>

<start>060000</start>

<runtime>000100</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>

</job>

And more for the rest of the day, but the server only seems to restart 5% of the time.

Link to comment
Share on other sites

  • 0

@echo off
:: Modify your folders etc!
:: Parameter und Ordner hier ändern


set armapath=    "C:\epoch"
set armaparams=    C:\epoch\arma3server.exe -port=2302 "-config=C:\epoch\TADST\epoch\TADST_config.cfg" "-cfg=C:\epoch\TADST\epoch\TADST_basic.cfg" "-profiles=C:\epoch\TADST\epoch" -name=epoch -netlog "-mod=@Epoch;@epochhive;@AllInArmaTerrainPack;@mas_Vehicle;@mas_Weapons;@asm" -enableHT -cpucount=12 -exThreads=12 -maxMem=16384 -nosound -noCB -loadMissionToMemory -autoinit -high -malloc=tbbmalloc
@set serverexe=    arma3server.exe

set HCarmapath="C:\HC"
set HCarmaparams=C:\HC\arma3server.exe -client -connect=127.0.0.1 -mod="@Epoch;" -nosound -cpucount=12 -exThreads=12 -maxMem=16384 -loadMissionToMemory
@set HCserverexe=arma3server.exe


:1

echo.
echo Restarting Server
:: start the servers..
cd /d %armapath%
start "" %serverexe% %armaparams%
 
timeout 1


echo.
echo Restarting HC
:: start the servers..
cd /d %HCarmapath%
start "" %HCserverexe% %HCarmaparams%
timeout 180


echo.
echo KILL servers
cd /d %armapath%
taskkill /im %serverexe%
timeout 3
taskkill /f /im WerFault.exe
timeout 60


goto 1
pause

Link to comment
Share on other sites

  • 0

@echo off

:: Modify your folders etc!

:: Parameter und Ordner hier ändern

set armapath=    "C:\epoch"

set armaparams=    C:\epoch\arma3server.exe -port=2302 "-config=C:\epoch\TADST\epoch\TADST_config.cfg" "-cfg=C:\epoch\TADST\epoch\TADST_basic.cfg" "-profiles=C:\epoch\TADST\epoch" -name=epoch -netlog "-mod=@Epoch;@epochhive;@AllInArmaTerrainPack;@mas_Vehicle;@mas_Weapons;@asm" -enableHT -cpucount=12 -exThreads=12 -maxMem=16384 -nosound -noCB -loadMissionToMemory -autoinit -high -malloc=tbbmalloc

@set serverexe=    arma3server.exe

set HCarmapath="C:\HC"

set HCarmaparams=C:\HC\arma3server.exe -client -connect=127.0.0.1 -mod="@Epoch;" -nosound -cpucount=12 -exThreads=12 -maxMem=16384 -loadMissionToMemory

@set HCserverexe=arma3server.exe

:1

echo.

echo Restarting Server

:: start the servers..

cd /d %armapath%

start "" %serverexe% %armaparams%

 

timeout 1

echo.

echo Restarting HC

:: start the servers..

cd /d %HCarmapath%

start "" %HCserverexe% %HCarmaparams%

timeout 180

echo.

echo KILL servers

cd /d %armapath%

taskkill /im %serverexe%

timeout 3

taskkill /f /im WerFault.exe

timeout 60

goto 1

pause

 

This is what ive build so fare. It works for me ond hopefully also for others.

 

 

-create a bat file and name it restart.bat

-edit ur path. and ur params

-if u have no HC erase the HC lines.

-This will restart the server every 4 hours at the point u hit the "restart.bat"

Link to comment
Share on other sites

  • 0

This works too, but it is not the best practice...

 

For example -exThreads=12 will not take any effect, because a maximum of -exThreads=7 is possible by the engine. It has absolutly no learning effect to copy something from the internet by having no idea what you are doing... thats the reason why i gave you a link... simply to study... aaand you can`t say "it works" by having no idea what is going on... ;)

Link to comment
Share on other sites

  • 0

ive wrote this script. And played with the params so they are maybe not the best.

Every single person have to modify his params and folders. Like i said in the script.

And u didnt help me as i ask the first time for a restart script...

But it seams u have planty of knowleg about this thing.

So if u have a better way to auto restart a server be gental and help me and all the other people and post the better way u have.

->otherwise pls stop spamming.

Link to comment
Share on other sites

  • 0

I'd also be interested in the answer to this. We have the scheduler set as follows:

<job id="0">

<day>1,2,3,4,5,6,7</day>

<start>055500</start>

<runtime>000100</runtime>

<loop>0</loop>

<cmd>say -1 THIS SERVER WILL RESTART IN 5 MINUTES</cmd>

</job>

<job id="1">

<day>1,2,3,4,5,6,7</day>

<start>055900</start>

<runtime>000100</runtime>

<loop>0</loop>

<cmd>say -1 THIS SERVER WILL RESTART IN 1 MINUTE</cmd>

</job>

<job id="2">

<day>1,2,3,4,5,6,7</day>

<start>060000</start>

<runtime>000100</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>

</job>

And more for the rest of the day, but the server only seems to restart 5% of the time.

4 hr resets on a 24 hr clock , with messages .

<Scheduler>

    <job id='0'>

<day>1,2,3,4,5,6,7</day>

<start>000600</start>

<runtime>001000</runtime>

<loop>-1</loop>

<cmd>say -1Your Message Here</cmd>

</job>

 

<job id='1'>

<day>1,2,3,4,5,6,7</day>

<start>000600</start>

<runtime>001900</runtime>

<loop>-1</loop>

<cmd>say -1 Your Message Here</cmd>

</job>

 

<!-- 01:00 AM restart -->

<job id='2'>

<day>1,2,3,4,5,6,7</day>

<start>00:30:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 30 minutes </cmd>    

</job>

    

<job id='3'>

<day>1,2,3,4,5,6,7</day>

<start>00:50:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 10 minutes</cmd>    

</job>

    

<job id='4'>

<day>1,2,3,4,5,6,7</day>

<start>00:58:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 2 minutes </cmd>    

</job>

    

<job id='5'>

<day>1,2,3,4,5,6,7</day>

<start>00:59:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 1 minute </cmd>    

</job>

<job id='6'>

<day>1,2,3,4,5,6,7</day>

<start>00:59:55</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 SERVER RESTART NOW!</cmd>

</job>

     

<job id='7'>

<day>1,2,3,4,5,6,7</day>

<start>01:00:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>  

</job>

<!-- End 01:00 AM restart -->

<!-- 05:00 AM restart -->

<job id='8'>

<day>1,2,3,4,5,6,7</day>

<start>04:30:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 30 minutes </cmd>    

</job>

    

<job id='9'>

<day>1,2,3,4,5,6,7</day>

<start>04:50:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 10 minutes </cmd>    

</job>

    

<job id='10'>

<day>1,2,3,4,5,6,7</day>

<start>04:58:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 2 minutes</cmd>    

</job>

    

<job id='11'>

<day>1,2,3,4,5,6,7</day>

<start>04:59:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 1 minute</cmd>    

</job>

<job id='12'>

<day>1,2,3,4,5,6,7</day>

<start>04:59:55</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 SERVER RESTART NOW!</cmd>

</job>

    

<job id='13'>

<day>1,2,3,4,5,6,7</day>

<start>05:00:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>    

</job>

<!-- End 05:00 AM restart -->

<!-- 09:00 AM restart -->

<job id='14'>

<day>1,2,3,4,5,6,7</day>

<start>08:30:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 30 minutes </cmd>    

</job>

    

<job id='15'>

<day>1,2,3,4,5,6,7</day>

<start>08:50:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 10 minutes </cmd>    

</job>

    

<job id='16'>

<day>1,2,3,4,5,6,7</day>

<start>08:58:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 2 minutes</cmd>    

</job>

    

<job id='17'>

<day>1,2,3,4,5,6,7</day>

<start>08:59:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 1 minute</cmd>    

</job>

<job id='18'>

<day>1,2,3,4,5,6,7</day>

<start>08:59:55</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 SERVER RESTART NOW!</cmd>

</job>

    

<job id='19'>

<day>1,2,3,4,5,6,7</day>

<start>09:00:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>   

</job>

<!-- End 09:00 AM restart -->

<!-- 01:00 PM restart -->

<job id='20'>

<day>1,2,3,4,5,6,7</day>

<start>12:30:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 30 minutes </cmd>    

</job>

    

<job id='21'>

<day>1,2,3,4,5,6,7</day>

<start>12:50:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 10 minutes </cmd>    

</job>

    

<job id='22'>

<day>1,2,3,4,5,6,7</day>

<start>12:58:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 2 minutes</cmd>    

</job>

    

<job id='23'>

<day>1,2,3,4,5,6,7</day>

<start>12:59:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 1 minute</cmd>    

</job>

<job id='24'>

<day>1,2,3,4,5,6,7</day>

<start>12:59:55</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 SERVER RESTART NOW!</cmd>

</job>

    

<job id='25'>

<day>1,2,3,4,5,6,7</day>

<start>13:00:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>   

</job>

<!-- End 01:00 PM restart -->

<!-- 05:00 PM restart -->

<job id='26'>

<day>1,2,3,4,5,6,7</day>

<start>16:30:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 30 minutes </cmd>    

</job>

    

<job id='27'>

<day>1,2,3,4,5,6,7</day>

<start>16:50:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 10 minutes </cmd>    

</job>

    

<job id='28'>

<day>1,2,3,4,5,6,7</day>

<start>16:58:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 2 minutes </cmd>    

</job>

    

<job id='29'>

<day>1,2,3,4,5,6,7</day>

<start>16:59:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 1 minute</cmd>    

</job>

<job id='30'>

<day>1,2,3,4,5,6,7</day>

<start>16:59:55</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 SERVER RESTART NOW!</cmd>

</job>

    

<job id='31'>

<day>1,2,3,4,5,6,7</day>

<start>17:00:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>   

</job>

<!-- End 05:00 PM restart -->

    

<!-- 09:00 PM restart -->

<job id='32'>

<day>1,2,3,4,5,6,7</day>

<start>20:30:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 30 minutes </cmd>    

</job>

    

<job id='33'>

<day>1,2,3,4,5,6,7</day>

<start>20:50:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 10 minutes </cmd>    

</job>

    

<job id='34'>

<day>1,2,3,4,5,6,7</day>

<start>20:58:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 2 minutes </cmd>    

</job>

    

<job id='35'>

<day>1,2,3,4,5,6,7</day>

<start>20:59:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 Server Restart in 1 minute</cmd>    

</job>

<job id='36'>

<day>1,2,3,4,5,6,7</day>

<start>20:59:55</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>say -1 SERVER RESTART NOW!</cmd>

</job>

    

<job id='37'>

<day>1,2,3,4,5,6,7</day>

<start>21:00:00</start>

<runtime>000000</runtime>

<loop>0</loop>

<cmd>#shutdown</cmd>    

</job>

<!-- End 09:00 PM restart -->

</Scheduler>

Link to comment
Share on other sites

  • 0

@echo off

:: Modify your folders etc!

:: Parameter und Ordner hier ändern

set armapath=    "C:\epoch"

set armaparams=    C:\epoch\arma3server.exe -port=2302 "-config=C:\epoch\TADST\epoch\TADST_config.cfg" "-cfg=C:\epoch\TADST\epoch\TADST_basic.cfg" "-profiles=C:\epoch\TADST\epoch" -name=epoch -netlog "-mod=@Epoch;@epochhive;@AllInArmaTerrainPack;@mas_Vehicle;@mas_Weapons;@asm" -enableHT -cpucount=12 -exThreads=12 -maxMem=16384 -nosound -noCB -loadMissionToMemory -autoinit -high -malloc=tbbmalloc

@set serverexe=    arma3server.exe

set HCarmapath="C:\HC"

set HCarmaparams=C:\HC\arma3server.exe -client -connect=127.0.0.1 -mod="@Epoch;" -nosound -cpucount=12 -exThreads=12 -maxMem=16384 -loadMissionToMemory

@set HCserverexe=arma3server.exe

:1

echo.

echo Restarting Server

:: start the servers..

cd /d %armapath%

start "" %serverexe% %armaparams%

 

timeout 1

echo.

echo Restarting HC

:: start the servers..

cd /d %HCarmapath%

start "" %HCserverexe% %HCarmaparams%

timeout 180

echo.

echo KILL servers

cd /d %armapath%

taskkill /im %serverexe%

timeout 3

taskkill /f /im WerFault.exe

timeout 60

goto 1

pause

Dude read the BI website! EnableHT with cpucount= with exthreads= wtf? Maxmem 16GB lol.

I don't mean to be mean but that's uneducated over kill!

Also are you running the HC on the same host with the same launch parameters? You do know that arma 3 is not optimised for threads and cpu queuing? -high, set cpu affinity anyone?

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...