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
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