• 0
d4nn13

Restart only working one time

Question

If i configure auto restart in config.cpp the restart will work one time and never again until i "kill"
my server from my providers (nitrado) backend then it will work one time again ...

config looks like this:

 

	class Time
	{
		// Uses Dedicated Server time as ingame Time
		useRealTime = 1;

		// Will overide RealTime
		useStaticTime = 0;

		// time in ARMA FORMAT << CONFIG
		// https://community.bistudio.com/wiki/setDate

		staticTime[] = {2039,10,24,15,30};
	};


	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 = "XXXXXXXXXXXXXXXXXXXXX";

		// 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[] = {0, 30}; //this low for testing...

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

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

		/*
			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 = 1;

		/*
			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}; 
	};

 

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Because the function does NOT restart your server. It locks the server and kicks people. For the restart you have to use a tool like BEC or macas mbcon

Share this post


Link to post
Share on other sites
  • 0

Most of the GSPs have working restarters which can be set in cpanel.

Share this post


Link to post
Share on other sites
Advertisement

  • Recently Browsing   0 members

    No registered users viewing this page.