#!/usr/bin/python # # This script is designed to start the IOC-s after the servers are shut off. # First one needs to check if the IOC-s are already running, and if not then launch the # IOC-s using the python scripts in $APP/scripts/IOc are. # import os, sys import time import socket import pprint import subprocess from optparse import OptionParser import iocPortMap from iocPortMap import * import procServMgr from procServMgr import * # Start IOC-s of the general group for iocName in iocGroupMap["GENERAL"] : if( not procServMgr.check_ioc( iocName ) ) : procServMgr.start( iocName ) time.sleep(0.1) # The Other IOC-s (FCAL voltages and VME scalers) can be launched from the GUI.