Navigation:  Administration >

Server Restart

Previous pageReturn to chapter overviewNext page

Please check, if a restart of the server machine makes sense. If yes, use a script that guarantees a clean startup in the right order. The following extract of a script can be used in a .bat file, that might be executed daily in your windows task scheduler.

 

Windows Task Scheduler - configuration of daily server restart

Windows Task Scheduler - configuration of daily server restart

 

@ECHO OFF

REM *****************************************************************

REM *         GIS Server Restart                                        *

REM *                                                                               *

REM *****************************************************************

SET REVNR="$Revision: 6 $"

SET REVDATE="$Date: 8.01.14 19:24 $"

 

@ECHO ON

echo "Start of Restart of ArcGIS Server/IIS/Tomcat/WebOffice: "

date /t

time /t

 

REM STOPPING-Windows-Services

REM =========================

net stop "Apache Tomcat 7.0 Tomcat7" /y

net stop "Tomcat7" /y

@ECHO OFF

ping -t localhost -n 15

net stop "ArcGIS Server" /y

ping -t localhost -n 30

@ECHO ON

net stop "World Wide Web Publishing Service" /y

net stop "IIS Admin Service" /y

 

@ECHO OFF

REM wait for 30 seconds

ping -t localhost -n 30

@ECHO ON

 

REM Starting-Windows-Services

REM =========================

net start "IIS Admin Service"

net start "World Wide Web Publishing Service"

net start "ArcGIS Server"

 

@ECHO OFF

REM Wait 210 seconds - using ping - portable to other Windows Version

REM as there are now all services stopped 30 seconds are enough

ping -t localhost -n 15

 

REM Wait X seconds - using ping - portable to other Windows Version

ping -t localhost -n 15

 

@ECHO ON

 

REM Restart IIS to Update REST-Interface

REM ====================================

net stop "World Wide Web Publishing Service" /y

net stop "IIS Admin Service" /y

net start "IIS Admin Service"

net start "World Wide Web Publishing Service"

 

REM Finally TomCat start

net start "Apache Tomcat 7.0 Tomcat7"

net start "Tomcat7"

 

echo "End:"

date /t

time /t

@ECHO OFF

 

 

Note: If you have configured a Full-Text Search in your WebOffice 10.2 SP3 application, you can use a command in the .bat script to recreate all subindices. Please see chapter Batch Administration Request for more details.