!--------------------------------------------------------------------
!
!      FREE_CAT_LOCK RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER User      Description
! -------- ------ --------- -------------------------------------
! 08/03/04 51692  J.Baum    Initial version
!--------------------------------------------------------------------

PROCESS_NAME = free_cat_lock		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r free_cat_lock>
CLASS = pod
DESCRIPTION = 'Free cataloging lock for POD file.'
COMMAND      = free_catalog_lock.pl
SYSTEM = OPUS

OSF_RANK             = 1     ! Only OSF triggers for this task

OSF_TRIGGER1.SC      = w     ! waiting for free lock processing 
OSF_TRIGGER1.DATA_ID = pod   ! only POD files use locks

OSF_PROCESSING.SC    = p     ! Set the processing flag to 'Processing'
OSF_NORMAL.SC        = u     ! Normal: trigger housekeeping update
OSF_ERROR.SC         = e     ! Error:  Set the trouble flag

XPOLL_STATE.07 = OSF_ERROR   ! exit status 7 == OSF_ERROR state
XPOLL_STATE.09 = OSF_NORMAL  ! exit status 9 == OSF_NORMAL state

POLLING_TIME  = 10	     ! Wait (seconds) before polling for next 

! parameters passed to script by ENV variables
ENV.CATALOG_LOCK_DIR = CATALOG_LOCK_DIR
ENV.HELD_STAGE       = SC
ENV.HELD_STATUS      = h
ENV.CONTINUE_STATUS  = u
