A new doc condor_config.html is being added showing the condor configuration
[burt-test.git] / frontend / checkFrontend.py
bloba64d4e1037db476fd41aeaea325ee3591fddf366
1 #!/usr/bin/env python
3 # Project:
4 # glideinWMS
6 # File Version:
7 # $Id: checkFrontend.py,v 1.5 2011/02/10 21:35:31 parag Exp $
9 # Description:
10 # Check if a glideinFrontend is running
12 # Arguments:
13 # $1 = work_dir
15 # Author:
16 # Igor Sfiligoi
19 import sys,os.path
20 sys.path.append(os.path.join(sys.path[0],"../lib"))
21 import glideinFrontendPidLib
23 try:
24 work_dir=sys.argv[1]
25 frontend_pid=glideinFrontendPidLib.get_frontend_pid(work_dir)
26 except:
27 print "Not running"
28 sys.exit(1)
30 print "Running"
31 sys.exit(0)