@@ -0,0 +1,399 @@
+#!/bin/env python%0A#%0A# Description:%0A#   Check if a glideinFactory is running%0A# %0A# Arguments:%0A#   $1 = glidein submit_dir (i.e. factory dir)%0A#%0A# Author:%0A#   Igor Sfiligoi Jul 9th 2008%0A#%0A%0Aimport sys%0Aimport glideFactoryPidLib%0A%0Atry:%0A    startup_dir=sys.argv%5B1%5D%0A    factory_pid=glideFactoryPidLib.get_gfactory_pid(startup_dir)%0Aexcept:%0A    print %22Not running%22%0A    sys.exit(1)%0A%0Aprint %22Running%22%0Asys.exit(0)%0A%0A

Check if a glideinFactory is running