Select to view content in your preferred language

Script Start/Stop Services

1217
4
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
4 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
gahe
by
New Contributor II

I know this is old but the I have the same issue now except ours is not part of a enterprise portal so the code doesn't work. I can't find a solution to start the services in our 10.9.1 ArcGIS Server Manager because as soon as I turn off the services it disappear from rest and trying to start it finds no services to start.

0 Kudos
mody_buchbinder
Occasional Contributor III
JoshSaad1
Occasional Contributor II

Thanks!  That did the trick.

0 Kudos