Hello,
I am currently attempting to automate the process of overwriting an existing map service using Arcpy. I was wondering if, before overwriting the map service, there was a need to stop the service? If not, will a publisher connection to ArcGIS Server work for what I am trying to do? Thank you for your time.
-Jacob
Hi Jacob,
The publisher connection is fine to use.
You shouldn't need to stop the service when overwriting. You don't need to when doing it manually, so I would assume the same applies through a script. Overwriting the service should automatically stop and start the service on its own
Thanks. I appreciate your help.
Adding to Jennifer's response; just be sure you can flip the switch that starts the service immediately upon completion of overwriting.
Okay. So after overwriting, the service will need to be started using an administrator connection in order for the service to begin to function?
I update mine manually. You'll need to emulate this pane with your script:
Thanks so much for your help.
And if you need it to be done by script, this is a good place to start http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340 which is the ArcGIS Server admin toolbox from esri
Thanks so much.