I need to create a python script to rebuild an address locator based on address points, an address locator based on street centerlines and a composite locator that contains both the address points and street centerlines. Once the rebuild of the locators is done, I need to restart the gecoding service. I also need to rebuild a network based on the street centerlines and then restart the Routing Service.
I have seen the “Example: Stop or start all services in a folder” (
http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Stop_or_start_all_services_in_a_fo...) example on the ArcGIS Resources page. We are not set up to use folders at this time and I do not want to have to stop and start all services, just the specific ones needed.
It would be great to have a script to easily rebuild locators and networks and then restart the corresponding services on the server. We have previously done this through a batch file that we downloaded from the ArcScripts page. But now at 10.1, it does not work.