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 *****************************************************************

 

@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 9.0 Tomcat9" /y

net stop "VertiGIS WebOffice Extensions" /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 60 seconds - using ping - portable to other Windows Version

ping -t localhost -n 60

 

@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 Start VertiGIS WebOffice Extensions

net start "VertiGIS WebOffice Extensions"

 

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

ping -t localhost -n 15

 

REM Finally TomCat start

net start "Apache Tomcat 9.0 Tomcat9"

 

echo "End:"

date /t

time /t

@ECHO OFF

 

Note: The above listed script can be downloaded via the link GIS Server Restart. Please note that it is possible that name of services or time management of breaks within the script has to be adapted according to the customer server.

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