• 0
BetterDeadThanZed

My server restarts every 3 hours and I don't know why

Question

Here's something that has me baffled. I have BEC set to restart the server every 4 hours via the scheduler.xml. The times are out of order because I kept adding messages but it all works in the right order:

Spoiler

<?xml version="1.0"?>
<!-- GENERATED AUTOMATICALLY BY VERT HOSTING -->
<Scheduler>
        <job id="0">
                <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>
        </job>
        <job id="1">
                <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>
        </job>
        <job id="2">
                <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>
        </job>
        <job id="3">
                <start>035800</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 2 MINUTES.</cmd>
        </job>
        <job id="4">
                <start>040000</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>#shutdown</cmd>
        </job>
		<job id="5">
				<start>035500</start>
				<runtime>000000</runtime>
				<day>1,2,3,4,5,6,7</day>
				<loop>0</loop> 
				<cmd>say -1 Locking server to prevent new players from joining.</cmd>		
		</job>	
		<job id="6">
				<start>035300</start>
				<runtime>000000</runtime>
				<day>1,2,3,4,5,6,7</day>
				<loop>0</loop> 
				<cmd>#lock</cmd>		
		</job>	
        <job id="7">
                <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>
        </job>		
        <job id="8">
                <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>
        </job>	
        <job id="9">
                <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.</cmd>
        </job>	
        <job id="10">
                <start>000300</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 BEC STARTED</cmd>
        </job>
        <job id="11">
                <start>000300</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>#unlock</cmd>
        </job>	
        <job id="12">
                <start>035600</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 4 MINUTES.</cmd>
        </job>		
        <job id="13">
                <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.</cmd>
        </job>
        <job id="14">
                <start>020000</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 2 HOURS.</cmd>
        </job>
        <job id="15">
                <start>010000</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 3 HOURS.</cmd>
        </job>	
        <job id="16">
                <start>035100</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 9 MINUTES.</cmd>
        </job>
        <job id="17">
                <start>035200</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 8 MINUTES.</cmd>
        </job>
        <job id="18">
                <start>035300</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 7 MINUTES.</cmd>
        </job>
        <job id="19">
                <start>035400</start>
                <runtime>000000</runtime>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 SERVER RESTART IN 6 MINUTES.</cmd>
        </job>		
</Scheduler>

 

It's always worked fine. I have Infistar, which has an option to restart. I have that set to false and set the number higher than any time just to be sure:

/* shows RESTART IN X MINS */
USE_RESTART_TIMER = false;			/* show time left to next restart */
RESTART_TIME_IN_M = 1800;			/* restart time in minutes (default: 180min == 3 hours) */
SHOW_TIMER_IN_MIN[] = {1,2,3,5,10};	/* minutes before restart, when message is shown */
USE_RESTART_TIMER_SHUTDOWN = true;	/* #shutdown the server after RESTART_TIME_IN_M minutes */

I have Exile's restart settings turned off:

Spoiler

	class RCON
	{
		/*
			Note that for this to work you need to have serverCommandPassowrd defined in config.cfg and BE enabled
		*/

		// This needs to match config.cfg serverCommandPassword
		serverPassword = "password";

		// Autolocks server until its ready to accept players
		useAutoLock = 1;

		// Server will autoLock at that time before restart (minutes)
		restartAutoLock = 3;

		/*
			Number of hours and minutes of your restart period.

			Examples:

			{4, 0} = Every 4 hours
			{1, 30} = Every one and a half hour (who the hell would do this?)
		*/
		restartTimer[] = {5, 0};

		/*
			Kicks players before restart to prevent gear loss.
			We strongely recommend to use this!

			0 = off
			1 = on
		*/
		useAutoKick = 0;

		/*
			Number of minutes before the server kicks players that did
			not disconnect before the restart. Should at least be two
			minutes!
		*/
		kickTime = 2;

		/*
			Self-explanatory

			0 = off
			1 = on
		*/
		useRestartMessages = 0;

		/*
			Number of minutes before the restart to inform your players.

			Only use full minutes here. Value like 5.5 have not been tested.
		*/
		restartWarningTime[] = {15, 10, 5, 3}; 

		/* 
			If set to 1 server will execute '#shutdown',
			to try to shutdown the server
		*/

		useShutdown = 0;
	};

 

For some reason, my server keeps restarting at 3 hours. There are no warnings, like you'd get with Infistar if it was restarting the server. BEC is showing it's normal restart messages. I have it set to broadcast when there are 3 hours left, 2 hours left, 1 hour left and then messages periodically after that. When I see the message that says there's 2 hours until restart, the server restarts 1 hour later, at the 3 hour mark. I've always had restarts working without an issue but now that I updated to Exile 0.9.8, this is happening. 

Any ideas?

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

I had this the other day as well. There are now 2 options in infistar about restarts, one above the restart options for the messages, and one at the bottom to actually restart the server. Check they're both set to false :)

I was very confused as to why we all suddenly lost connection to the server whilst I was trying to park my trusty golf, and that's what it was! Notify was set to false, restart was set to true

1 person likes this

Share this post


Link to post
Share on other sites
  • 0
14 minutes ago, Paul said:

I had this the other day as well. There are now 2 options in infistar about restarts, one above the restart options for the messages, and one at the bottom to actually restart the server. Check they're both set to false :)

I was very confused as to why we all suddenly lost connection to the server whilst I was trying to park my trusty golf, and that's what it was! Notify was set to false, restart was set to true

It turns out that Exile is indeed restarting the server after 3 hours no matter what the settings. I found this post: 

and that solved the issue, mostly. Exile's built in notifications are apparently 2 minutes off from the actual restart when using this fix. I was told the notification came up for 2 minutes and then the server restarted immediately after that.

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.