Jump to content

Server auto restarting at the wrong times...


dzrealkiller

Recommended Posts

 

From looking at your redis.conf file and your EpochServer.ini, I see the database port is

23423

But in your redis.conf you're not specifying the port therefor it will run on the default port of

6379

Try changing the redis.conf file to specify the port to match what the server is trying to connect to:

bind 37.187.158.76
port 23423
maxmemory 4gb
save 900 1
save 300 10
save 60 1000
requirepass PASSWORDHERE

 

We specify the port in the command line for redis.

Link to comment
Share on other sites

Well, Swiftnode has fixed all my issues like a week ago :D Its all smooth sailing since.. I love it not a single issue they kicked my servers butt :D And now I am looking into getting help with the BEC auto restarter If somebody could help me with that I would appreciate it very much :)

 

We working on that for you using a batch or a another method we are going to try first which does the same thing running from BEC.

Link to comment
Share on other sites

Well, Swiftnode has fixed all my issues like a week ago :D Its all smooth sailing since.. I love it not a single issue they kicked my servers butt :D And now I am looking into getting help with the BEC auto restarter If somebody could help me with that I would appreciate it very much :)

 

 

Glad to hear man, I just got my server with Swiftnode.net also and things have been going good, these guys have brilliant support and have been on my server helping me get stuff set up and making sure its all going as planned.

Link to comment
Share on other sites

Yeah there on my server sometimes too they pop In and see how things are getting on and they had a little game with my admins last night it was a showdown :P just feel bad I missed it I was in bed while there was a fight going down on the server between admins and swiftnode.net I heard It was pretty damn funny :D I love how interactive they are with there customers Its great :D

Link to comment
Share on other sites

You can use a .bat file to handle the starting of your server, then after you start the sever call a .bat file responsible for BEC.

BEC.bat

BEC\Bec.exe -f Config.cfg --dsc
exit

START_SERVER.bat

call D:\arma2oaserver.exe -Slots=40 -port=2412 "-config=cfgdayz\config.cfg" "-cfg=cfgdayz\basic.cfg" "-profiles=cfgdayz" "-BEpath=BattlEye" -name=cfgdayz "-mod=@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;"
start D:\bec.bat
Link to comment
Share on other sites

if its a hoster ,TCadmin panel will auto start the server back up so only a Shutdown command in the scheduller is needed , and i have my auto restarts runining on a timer not at set times ,, less hassil and less to do in sch file

Your restart times will move. If you don't have warnings people won't like getting randomly discon. Then they leave server. Just do one schedule restart and copy paste. Really not hard :).

Link to comment
Share on other sites

What would the restart command look like if I wanted my server to restart at say, every 4 hours? I have the warnings already set for 4 hours but no restart command yet :S

 

Also is there any way to change the warning colour? currently its white and does not really stand out :S

 

Never played around with BEC :S

Link to comment
Share on other sites

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Scheduler>

	<!-- Give 30 minute warning -->
	<job id='0'>
		<day>1,2,3,4,5,6,7</day>
		<start>013000</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server restart in 30 minutes</cmd>
	</job>

	<!-- Give 15 minute warning -->
	<job id='1'>
		<day>1,2,3,4,5,6,7</day>
		<start>014500</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server restart in 15 minutes</cmd>
	</job>

	<!-- Give 10 minute warning -->
	<job id='2'>
		<day>1,2,3,4,5,6,7</day>
		<start>015000</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server restart in 10 minutes</cmd>
	</job>

	<!-- Give 05 minute warning -->
	<job id='3'>
		<day>1,2,3,4,5,6,7</day>
		<start>015500</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server restart in 05 minutes GTFO</cmd>
	</job>

	<!-- Give 01 minute warning -->
	<job id='4'>
		<day>1,2,3,4,5,6,7</day>
		<start>015900</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server restart in 01 minutes</cmd>
	</job>

	<!-- Restart Server -->
	<job id='5'>
		<day>1,2,3,4,5,6,7</day>
		<start>020000</start>
		<runtime>000000</runtime>
		<loop>0</loop>
		<cmd>D:\RESTART_SERVER.bat</cmd>
	</job>

</Scheduler>
Link to comment
Share on other sites

I'm with a hoster using TCAdmin would I need to just do...

    <!-- Restart Server -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>020000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>shutdown</cmd>
    </job>

If I do something like   <cmd>shutdown</cmd>  would that shut down the server and then TCAdmin starts it again by its self or do I have to use a .bat?

Link to comment
Share on other sites

I'm with a hoster using TCAdmin would I need to just do...

    <!-- Restart Server -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>020000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>shutdown</cmd>
    </job>
If I do something like   <cmd>shutdown</cmd>  would that shut down the server and then TCAdmin starts it again by its self or do I have to use a .bat?

Its #shutdown btw. Need the #. Ive heard success with just a #restart but I recommend shutdown. And apparently yes, tcadmin will auto start the server on shutdown AFAIK.

Link to comment
Share on other sites

I'm with a hoster using TCAdmin would I need to just do...

    <!-- Restart Server -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>020000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>shutdown</cmd>
    </job>

If I do something like   <cmd>shutdown</cmd>  would that shut down the server and then TCAdmin starts it again by its self or do I have to use a .bat?

 

I'm with a hoster using TCAdmin would I need to just do...

    <!-- Restart Server -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>020000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>shutdown</cmd>
    </job>

If I do something like   <cmd>shutdown</cmd>  would that shut down the server and then TCAdmin starts it again by its self or do I have to use a .bat?

 

 

 

<cmd>#shutdown</cmd>      <<<< that

Link to comment
Share on other sites

I'm with a hoster using TCAdmin would I need to just do...

    <!-- Restart Server -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>020000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>shutdown</cmd>
    </job>

If I do something like   <cmd>shutdown</cmd>  would that shut down the server and then TCAdmin starts it again by its self or do I have to use a .bat?

 

I believe so, though we don't use that method as we perform other tasks along side these events

Link to comment
Share on other sites

So for my server to restart every 4 hours It will be...

    <!-- Restart Server -->
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>040000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>

And my TCAdmin "should" start the server back up after... I will give this a try I guess :)

 

And I guess this: <start>040000</start> means it will shutdown after 4 hours of running and not at 4am / 4pm? Just wanted to make sure before trying :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...