I am having the hardest time keeping these simple scripts up and running. It will stop them but then it will not restart them, and all I am doing is changing STOP to START in the script. it keeps telling me invalid parameters error code 000800. Seems like which ever one I run first works, then the second one always give the "Invalid Parameters" error 000800 services is not a member invalid parameter
Here is the code I am using, any help would be greatly appreciated! This is driving me nuts and causing a lot of work after hours.
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# StartServicesIdrisi.py
# Created on: 2014-09-30 15:01:42.00000
# (generated by ArcGIS/ModelBuilder)
# Usage: StartServicesIdrisi <Service_List>
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Load required toolboxes
arcpy.ImportToolbox("//KERMIT/GIS_StaffOnly/Toolboxes/ServerAdminToolkit/Server Admin Toolkit.tbx")
# Script arguments
Service_List = arcpy.GetParameterAsText(0)
if Service_List == '#' or not Service_List:
Service_List = "SampleWorldCities.MapServer;Codes//BuildingFootprintsByCodesIPad.MapServer;Codes//BuildingsWithAttachments.MapServer;Codes//CodesEnforcement.MapServer;Codes//CodesInspectionByType.MapServer;Codes//CodesInspectionOver6MonthsAgo.MapServer"
# Local variables:
Server_Name = "idrisi"
Port = "6080"
Admin_User = "*****"
Admin_Password = "******"
# Process: Stop, Start, Delete Services
arcpy.StopStartService_ESRIServerAdminToolkit(Server_Name, Port, Admin_User, Admin_Password, "Start", Service_List)