A new doc condor_config.html is being added showing the condor configuration
[burt-test.git] / factory / checkFactory.py
blob7e6a56294454732f1ce5baa467a53833e16f1323
1 #!/usr/bin/env python
3 # Project:
4 # glideinWMS
6 # File Version:
7 # $Id: checkFactory.py,v 1.6 2011/02/10 21:35:30 parag Exp $
9 # Description:
10 # Check if a glideinFactory is running
12 # Arguments:
13 # $1 = glidein submit_dir (i.e. factory dir)
15 # Author:
16 # Igor Sfiligoi Jul 9th 2008
19 import sys,os.path
20 sys.path.append(os.path.join(sys.path[0],"../lib"))
21 import glideFactoryPidLib
23 try:
24 startup_dir=sys.argv[1]
25 factory_pid=glideFactoryPidLib.get_factory_pid(startup_dir)
26 except:
27 print "Not running"
28 sys.exit(1)
30 print "Running"
31 sys.exit(0)