<!DOCTYPE safe>
<safe>
<!-- Define the service names, in the startup order, separated by commas (,)
      Use the Get-Service PowerShell cmdlet to get the service names
  -->
<!-- optional services: AEOS aepu service, NSI_Service, NSX_Service, AppVision Service -->
<macro name="SERVICES" value="MSSQLSERVER, AEOS Application Server, AEOS Lookup Server" />
<service mode="mirror" boot="on">
	<!-- Heartbeat Configuration -->
	<heart>
		<heartbeat name="default" >
		</heartbeat>
	</heart>
	<!-- Virtual IP Configuration -->
	<!-- Define the name or IP address of your virtual server -->
	<vip>
	<interface_list>
		<interface> 
			<real_interface>
				<virtual_addr addr="" where="one_side_alias" />
			</real_interface>
		</interface>
	</interface_list>
	</vip>
	<!-- File Replication Configuration -->
	<!-- Adapt with the directory of your SQL Server database and logs -->
	<rfs>
		<replicated dir="C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Log" />
		<replicated dir="C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA" />
		<replicated dir="C:\AEOS\data\aemon\configurations" />
		<!--
		<replicated dir="C:\AEOS-aepu\data\aepu" />
		<replicated dir="C:\Program Files (x86)\NEDAP\NedapSqlImport\Profil" />
		<replicated dir="C:\Program Files (x86)\NEDAP\NedapSqlExport\Profil" />
		<replicated dir="C:\Program Files\AppVision 4\Configurations" />
		-->	
	</rfs>
	<!-- Software Error Detection Configuration -->
	<errd polltimer="10">
		<!-- AEOS process -->
		<proc name="AEOS_appl.exe" class="prim" action="restart" />
		<!-- SQL Server process -->
		<proc name="sqlservr.exe" action="restart" class="prim" />
		<!-- AEOS aepu process -->
		<!-- <proc name="AEOS_aepu.exe" action="restart" class="prim" /> -->
		<!-- Nedap SQL import process -->
		<!-- <proc name="NSI_service.exe" action="restart" class="prim" /> -->
		<!-- Nedap SQL export process -->
		<!-- <proc name="NSX_service.exe" action="restart" class="prim" /> -->
		<!-- AppVision process -->
		<!-- <proc name="AppServer.exe" action="restart" class="prim" /> -->	
	</errd>  
	<!-- User scripts activation -->
 	<user>
    	<var name="SERVICES" value="%SERVICES%"/>
  	</user>
</service>
</safe>
