def export_getStartupComponentStatus( self, componentTupleList ): """ Get the list of all the components ( services and agents ) set up for running with runsvdir in startup directory """ return InstallTools.getStartupComponentStatus( componentTupleList )
' cfgfile: DIRAC Cfg with description of the configuration (optional)' ] ) ) Script.addDefaultOptionValue( '/DIRAC/Security/UseServerCertificate', 'yes' ) Script.addDefaultOptionValue( 'LogLevel', 'INFO' ) Script.parseCommandLine() args = Script.getExtraCLICFGFiles() # if len( args ) > 1: Script.showHelp() exit( -1 ) # cfg = None if len( args ): cfg = args[0] from DIRAC.Core.Utilities import InstallTools # InstallTools.exitOnError = True # result = InstallTools.setupSite( Script.localCfg, cfg ) if not result['OK']: print "ERROR:", result['Message'] exit( -1 ) # result = InstallTools.getStartupComponentStatus( [] ) if not result['OK']: print 'ERROR:', result['Message'] exit( -1 ) InstallTools.printStartupStatus( result['Value'] )
def export_getStartupComponentStatus(self, componentTupleList): """ Get the list of all the components ( services and agents ) set up for running with runsvdir in startup directory """ return InstallTools.getStartupComponentStatus(componentTupleList)
' cfgfile: DIRAC Cfg with description of the configuration (optional)' ])) Script.addDefaultOptionValue('/DIRAC/Security/UseServerCertificate', 'yes') Script.addDefaultOptionValue('LogLevel', 'INFO') Script.parseCommandLine() args = Script.getExtraCLICFGFiles() # if len(args) > 1: Script.showHelp() exit(-1) # cfg = None if len(args): cfg = args[0] from DIRAC.Core.Utilities import InstallTools # InstallTools.exitOnError = True # result = InstallTools.setupSite(Script.localCfg, cfg) if not result['OK']: print "ERROR:", result['Message'] exit(-1) # result = InstallTools.getStartupComponentStatus([]) if not result['OK']: print 'ERROR:', result['Message'] exit(-1) InstallTools.printStartupStatus(result['Value'])
__doc__.split('\n')[1], 'Usage:', ' %s [option|cfgfile] ... [system [service|agent]]' % Script.scriptName, 'Arguments:', ' system: Name of the system for the component (default *: all)', ' service|agent: Name of the particular component (default *: all)' ])) Script.parseCommandLine() args = Script.getPositionalArgs() if len(args) > 2: Script.showHelp() exit(-1) system = '*' component = '*' if len(args) > 0: system = args[0] if system != '*': if len(args) > 1: component = args[1] # from DIRAC.Core.Utilities import InstallTools # InstallTools.exitOnError = True # result = InstallTools.getStartupComponentStatus([system, component]) if not result['OK']: print 'ERROR:', result['Message'] exit(-1) InstallTools.printStartupStatus(result['Value'])
Script.setUsageMessage( '\n'.join( [ __doc__.split( '\n' )[1], 'Usage:', ' %s [option|cfgfile] ... [system [service|agent]]' % Script.scriptName, 'Arguments:', ' system: Name of the system for the component (default *: all)', ' service|agent: Name of the particular component (default *: all)' ] ) ) Script.parseCommandLine() args = Script.getPositionalArgs() if len( args ) > 2: Script.showHelp() exit( -1 ) system = '*' component = '*' if len( args ) > 0: system = args[0] if system != '*': if len( args ) > 1: component = args[1] # from DIRAC.Core.Utilities import InstallTools # InstallTools.exitOnError = True # result = InstallTools.getStartupComponentStatus( [system, component] ) if not result['OK']: print 'ERROR:', result['Message'] exit( -1 ) InstallTools.printStartupStatus( result['Value'] )