Select to view content in your preferred language

Script Start/Stop Services

1096
3
Jump to solution
05-16-2022 01:27 PM
JoshSaad1
Occasional Contributor II

I need to create a script to automatically stop an address locator service, and then start it again after another script rebuilds it.

We've recently upgraded to ArcGIS Enterprise 10.9.1.  Previously, I used the method from this article to do this: Example: Stop or start all services in a folder—ArcGIS Server | Documentation for ArcGIS Enterprise.

Apparently, that doesn't work past version 10.8.x.  Does anyone know of another way that this process can be scripted?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
3 Replies
MichaelVolz
Esteemed Contributor

Is the geocode service part of an enterprise portal?  If so you can use a simpler javascript api script.

0 Kudos
mody_buchbinder
Occasional Contributor III
JoshSaad1
Occasional Contributor II

Thanks!  That did the trick.

0 Kudos