Previous Topic: stop.bat Script Changes for Member Servers and Non-SQL Express Primary ServersNext Topic: stop.bat Script Changes for SQL Express Primary Servers


start.bat Script Changes for SQL Express Primary Servers

After installation, you need to modify the start.bat script by adding text in two locations: after NORMAL and after FAILOVER. The following script changes apply only to SQL Express primary servers.

Copy the following script and paste it in the start.bat file after NORMAL and after FAILOVER:


REM Set the following variable 'process' to 1 for normal 
REM operation. During upgrade / migration, modify this 
REM script to set the value to zero 
SET process=1

REM Set this flag to 1 if it's a primary server and using 
REM MS SQL Express 2008 database, otherwise set it to 0
SET PRIMARY_SQLE_FLAG=1

IF %process%==0 GOTO end

REM Do normal processing here 

net stop CASDiscovery
net stop CASSvcControlSvr

if %PRIMARY_SQLE_FLAG%==0 GOTO CA_SERVICES
net start mssql$arcserve_db

:CA_SERVICES
net start CASDiscovery
net start CASportmappe
armload CASSvcControlSvr /S /R 3 /FOV CASSvcControlSvr
armload CASunivDomainSvr /S /R 3 /FOV CASunivDomainSvr
armload CASDBEngine /S /R 3 /FOV CASDBEngine
armload CASMessageEngine /S /R 3 /FOV CASMessageEngine
armload CASTapeEngine /S /R 3 /FOV CASTapeEngine
armload CASJobEngine /S /R 3 /FOV CASJobEngine
armload CASMgmtSvc /S /R 3 /FOV CASMgmtSvc
net start "CA ARCserve Communication Foundation"

:end
REM Exit out of the batch file