Select to view content in your preferred language

How to programmatically restart Map service??

5885
10
04-07-2015 05:50 AM
PeterLen
Frequent Contributor

Hello,

I have a need to programmatically restart a map service.  I have found Javascript code to successfully clear the services cache (half of the task) but I can't find code that will allow me to restart a map service.  We are using ArcGIS 10.0.  Does anyone have any thoughts, whether it be a way to do this via Javascript or an ArcGIS command-line tool, or ???

Thanks - Peter

0 Kudos
10 Replies
PeterLen
Frequent Contributor

Mudit - Thanks for the response.  After looking at the .Net code from the link, it looks to be very similar to the reference that Freddie gave, except it used .Net.  The URL to call, I believe, is basically the same thing though.  I tried calling URLs using the /stop and /start, but there just isn't a 10.0 services URL that recognize it so I am not sure if it is only a 10.1+ thing (there is a 10.1 reference in a comment within the .Net code).  I will look at  it a bit more though.  Thanks - Peter

0 Kudos