Ericode

BEC not running scheduler.xml

4 posts in this topic

Hello, on my server I installed BEC which runs great and tells me when people log in and out of the server but for some reason, the scheduler.xml is not working. Server messages don't get displayed and restarts don't work. Here is some detail about the server:

(all files inside the battleye folder are there such as BEServer.cfg and bans.txt)

Exile path: C:\Arma\Server

BEC path: C:\Arma\bec2\instance_11_Chernarus\BattlEye\Bec

config: C:\Arma\bec2\instance_11_Chernarus\BattlEye\Bec\Config

 

config.cfg

[Bec]
IP = 127.0.0.1
Port = 2302
BePath = C:\Arma\Server\SC\BattlEye
Admins = Admins.xml
Commands = Commands.xml
[Misc]
Ban = 3
ConsoleHeight	= 30
ConsoleWidth	= 60
Scheduler = Scheduler.xml
KickLobbyIdlers	= 400
ChatChannelFiles = True
Timeout = 60
[Reporter]
#User = alfred
#Password = 123456

 

scheduler.xml

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

<Scheduler>

	<!-- this job will start after 5 minutes and run forever with a 15 minutes interval between the jobs -->
	<job id='0'>
		<day>1,2,3,4,5,6,7</day>
		<start>000500</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 Please be respectful to all players and admins!</cmd>
	</job>

	<!-- this job will start after 5 minutes and will only run once. note that the runtime tag is ignored when loop is 0 -->
	
	<job id='1'>
		<day>1,2,3,4,5,6,7</day>
		<start>000500</start>
		<runtime>002500</runtime>
		<loop>-1</loop>
		<cmd>uptime</cmd>
	</job>

	<job id='2'>
		<day>1,2,3,4,5,6,7</day>
		<start>000500</start>
		<runtime>002000</runtime>
		<loop>-1</loop>
		<cmd>say -1 Do not destroy undefended camps or vehicles!  You are permitted to breach and clear in order to loot items.</cmd>
	</job>

	<!-- RESTART WARNINGS -->
	<job id='3'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='4'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='5'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='6'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='7'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='8'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='9'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='10'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='11'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='12'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='13'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='14'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='15'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='16'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='17'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='18'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='19'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='20'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='21'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='22'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='23'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='24'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='25'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='26'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='27'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='28'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='29'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='30'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='31'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='32'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='33'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='34'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='35'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='36'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='37'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!</cmd>
	</job>
	
		
	<job id='38'>
		<day>1,2,3,4,5,6,7</day>
		<start>00:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='39'>
		<day>1,2,3,4,5,6,7</day>
		<start>04:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='40'>
		<day>1,2,3,4,5,6,7</day>
		<start>08:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='41'>
		<day>1,2,3,4,5,6,7</day>
		<start>12:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='42'>
		<day>1,2,3,4,5,6,7</day>
		<start>16:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	
	<job id='43'>
		<day>1,2,3,4,5,6,7</day>
		<start>20:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='44'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='45'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='46'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='47'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='48'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	
	<job id='49'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
		
	<job id='50'>
		<day>1,2,3,4,5,6,7</day>
		<start>001000</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 While not required, donations to help cover server costs are appreciated.</cmd>
	</job>
		
	<job id='51'>
		<day>1,2,3,4,5,6,7</day>
		<start>001000</start>
		<runtime>001501</runtime>
		<loop>-1</loop>
		<cmd>say -1 We do NOT offer any perks in exchange for donations.</cmd>
	</job>
	
	<job id='52'>
		<day>1,2,3,4,5,6,7</day>
		<start>001500</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 Enjoy your stay!</cmd>
	</job>
	
	
	
</Scheduler>


 

Share this post


Link to post
Share on other sites

Your BEC is opening?
It notifies an Error?

 

you have configured your IP/PORT in the config file?

Share this post


Link to post
Share on other sites
Advertisement

Hello, on my server I installed BEC which runs great and tells me when people log in and out of the server but for some reason, the scheduler.xml is not working. Server messages don't get displayed and restarts don't work. Here is some detail about the server:

(all files inside the battleye folder are there such as BEServer.cfg and bans.txt)

Exile path: C:\Arma\Server

BEC path: C:\Arma\bec2\instance_11_Chernarus\BattlEye\Bec

config: C:\Arma\bec2\instance_11_Chernarus\BattlEye\Bec\Config

 

config.cfg

[Bec]
IP = 127.0.0.1
Port = 2302
BePath = C:\Arma\Server\SC\BattlEye
Admins = Admins.xml
Commands = Commands.xml
[Misc]
Ban = 3
ConsoleHeight	= 30
ConsoleWidth	= 60
Scheduler = Scheduler.xml
KickLobbyIdlers	= 400
ChatChannelFiles = True
Timeout = 60
[Reporter]
#User = alfred
#Password = 123456

 

scheduler.xml

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

<Scheduler>

	<!-- this job will start after 5 minutes and run forever with a 15 minutes interval between the jobs -->
	<job id='0'>
		<day>1,2,3,4,5,6,7</day>
		<start>000500</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 Please be respectful to all players and admins!</cmd>
	</job>

	<!-- this job will start after 5 minutes and will only run once. note that the runtime tag is ignored when loop is 0 -->
	
	<job id='1'>
		<day>1,2,3,4,5,6,7</day>
		<start>000500</start>
		<runtime>002500</runtime>
		<loop>-1</loop>
		<cmd>uptime</cmd>
	</job>

	<job id='2'>
		<day>1,2,3,4,5,6,7</day>
		<start>000500</start>
		<runtime>002000</runtime>
		<loop>-1</loop>
		<cmd>say -1 Do not destroy undefended camps or vehicles!  You are permitted to breach and clear in order to loot items.</cmd>
	</job>

	<!-- RESTART WARNINGS -->
	<job id='3'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='4'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='5'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='6'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='7'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='8'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='9'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='10'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='11'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='12'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='13'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='14'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='15'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='16'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='17'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='18'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='19'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='20'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='21'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='22'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='23'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='24'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='25'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='26'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='27'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='28'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='29'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='30'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='31'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='32'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!!!</cmd>
	</job>
	
	<job id='33'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:30:00</start>
		<runtime>033000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 30 minutes</cmd>
	</job>
	
	<job id='34'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:45:00</start>
		<runtime>034500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 15 minutes</cmd>
	</job>
	
	<job id='35'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:50:00</start>
		<runtime>035000</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 10 minutes</cmd>
	</job>
	
	<job id='36'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:55:00</start>
		<runtime>035500</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 5 minutes!!</cmd>
	</job>
	
	<job id='37'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:59:00</start>
		<runtime>035900</runtime>
		<loop>0</loop>
		<cmd>say -1 This server will restart in 1 minute!!  Log out NOW to avoid character data loss!!</cmd>
	</job>
	
		
	<job id='38'>
		<day>1,2,3,4,5,6,7</day>
		<start>00:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='39'>
		<day>1,2,3,4,5,6,7</day>
		<start>04:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='40'>
		<day>1,2,3,4,5,6,7</day>
		<start>08:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='41'>
		<day>1,2,3,4,5,6,7</day>
		<start>12:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='42'>
		<day>1,2,3,4,5,6,7</day>
		<start>16:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	
	<job id='43'>
		<day>1,2,3,4,5,6,7</day>
		<start>20:00:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='44'>
		<day>1,2,3,4,5,6,7</day>
		<start>23:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='45'>
		<day>1,2,3,4,5,6,7</day>
		<start>03:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='46'>
		<day>1,2,3,4,5,6,7</day>
		<start>07:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='47'>
		<day>1,2,3,4,5,6,7</day>
		<start>11:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	<job id='48'>
		<day>1,2,3,4,5,6,7</day>
		<start>15:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
	
	<job id='49'>
		<day>1,2,3,4,5,6,7</day>
		<start>19:55:00</start>
		<runtime>040000</runtime>
		<loop>0</loop>
		<cmd>#lock</cmd>
	</job>
	
		
	<job id='50'>
		<day>1,2,3,4,5,6,7</day>
		<start>001000</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 While not required, donations to help cover server costs are appreciated.</cmd>
	</job>
		
	<job id='51'>
		<day>1,2,3,4,5,6,7</day>
		<start>001000</start>
		<runtime>001501</runtime>
		<loop>-1</loop>
		<cmd>say -1 We do NOT offer any perks in exchange for donations.</cmd>
	</job>
	
	<job id='52'>
		<day>1,2,3,4,5,6,7</day>
		<start>001500</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 Enjoy your stay!</cmd>
	</job>
	
	
	
</Scheduler>

 

There are a couple this i noticed. First your battleye path should be

BePath = C:\Arma\Server\BattlEye

Next your scheduler has no kill server command to it

</job>
<job id='11'>
<day>1,2,3,4,5,6,7</day>
<start>030000</start>
<runtime>030000</runtime>
<loop>0</loop>
<cmd>D:\arma3serverconfig\stopserver.bat</cmd>
</job>

</Scheduler>

Also you need stop server bat

@echo off
::KILL ARMA3 SERVER
taskkill /f /fi "status eq not responding" /im arma3server.exe
taskkill /f /im arma3server.exe
timeout 1
::DOUBLE CHECK KILL
taskkill /f /fi "status eq not responding" /im arma3server.exe
taskkill /f /im arma3server.exe
timeout 1
:: KILL BATTLEYE
taskkill /im Bec.exe
timeout 1
::KILL SERVER MONITOR
taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat"
::KILL ALL COMMAND.EXE THAT ARE OPEN
taskkill /f /fi "status eq not responding" /im cmd.exe
taskkill /f /im cmd.exe
timeout 1
::DOUBLE TAP
taskkill /f /fi "status eq not responding" /im cmd.exe
taskkill /f /im cmd.exe
timeout 1

and you also need a server monitor 

@echo off
::IMPORTANT TO NAME IT SO WE CAN KILL IT
title servermonitor.bat
:start
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo Server is not running, will be started now 
start "" /min /wait "D:\arma3serverconfig\restartserver.bat" 
timeout 30
echo Server started succesfully
goto started
:loop
cls
echo Server is already running, running monitoring loop
:started
::THE 80 REFERS TO SECONDS AND HOW OFTEN IT WILL CHECK,YOU CAN SET IT TO WHATEVER YOU WANT. I JUST DONT WANT MY SERVER DOWN FOR MUCH LONGER THAN THAT!
::New error fault kill, will check for err fault and clear it and hopefully restart, a little more promise but no guarantee :)
taskkill /f /im WerFault.exe /fi "WINDOWTITLE eq Arma 3"
C:\Windows\System32\timeout /t 80
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
goto start

With a restart bat as well

@echo off
::MAKE SURE ALL TASKS ARE REALLY STOPPED

taskkill /f /fi "status eq not responding" /im arma3server.exe
taskkill /f /im arma3server.exe
timeout 1

::IF YOU PLAY ON SAME PC AS SERVER, SOMETIMES RESTARTS GET HUNG UP BECAUSE OF IT SO MAKE SURE TO KILL CLIENTSIDE TOO, I DONT, BUT JUST IN CASE YOU DO

taskkill /f /fi "status eq not responding" /im arma3.exe
taskkill /f /im arma3.exe
timeout 1

:: KILL BATTLEYE IF IT ISN'T ALREADY
taskkill /im Bec.exe

::SHUTDOWN SERVERMONITOR IF IT IS ALREADY RUNNING - WE RESTART IT AT THE END OF THIS
taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat
echo Make sure all is clear


::START BACKING UP DATABASE
echo Backing Up Database...

:BE SURE TO EDIT THE PATHS TO YOUR SQL BACKUP BATCH FILE
set BackupPath="C:\MySQLBackups\"
cd /d %BackupPath%
start "" "mysqlbackup.bat"
timeout 1
echo Database Backed up 100% 
echo.
echo Rotating RPT logs...

::I ROTATE MY RPT LOGS AS TO NOT GET ALL CLUTTERED IT WILL ROTATE PER DAY SO YOU WONT SEE YESTERDAYS
::I WILL ADD THE FILE IN HERE BUT NOT REQUIRED IF NOT USING, SIMPLY DELETE THIS BLOCK
set RotatePath="D:\arma3serverconfig\"
cd /d %RotatePath%
start "" "rotate_logs.bat"
timeout 1
echo Logs Rotated.. Restarting Battleye

::RESTARTING BATTLEYE
set becpath="D:\arma3serverconfig\Bec\"
cd /d %becpath%
start "" /min "Bec.exe" -f Config.cfg
timeout 3
echo Battleye has started.. 
echo.
echo.
echo Starting ARMA 3 Server...

::RESTARTING THE ARMA 3 SERVER BE SURE TO EDIT THIS TO YOUR SERVER .EXE LOCATION -NOTE ALSO THIS IS WHERE YOU DEFINE WHERE YOU CONFIG.CFG IS
cd D:\Games\ArmA3\A3Master
timeout 3
start "arma3" /min /high "arma3server.exe" -port=2522 "-config=D:\arma3serverconfig\config.cfg" "-cfg=D:\arma3serverconfig\basic.cfg" "-profiles=D:\arma3serverconfig" -name=arma3serverconfig "-mod=@life_server;" -world=empty -nosplash -noSound -noPause -enableHT -malloc=system 
timeout 6
echo ARMA 3 Server has started

:: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET
set ServerMonitorPath="D:\arma3serverconfig\"
cd /d %ServerMonitorPath%
start "" "servermonitor.bat"
echo Server Monitor has started. Have Fun
timeout 5
exit 

These are just examples and a full tutorial can be found here http://www.altisliferpg.com/topic/124-auto-restarts-auto-db-backups-and-global-messages-with-only-bec-batch-files/

Hope this helps as if your missing any bat files then your server will never restart.

Edited by EDG
1 person likes this

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.