!--------------------------------------------------------------------
!
! Name: podtrg.resource
!
! Purpose: This file is used to construct the trigger, error, and 
!          success status fields in the observation status file.
!
!	This resource file uses a time trigger. 
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER  User  Description
! ----- -------- ------  ------ -------------------------------------
!       05/12/00 37784   MSwam  first version
!       04/04/01 43165_16 MSwam invoke Perl script
!       04/25/01 43165_23 MSwam add RQ
!       06/20/01 44084    MSwam add retrigger for copy error (WK=o)
!       07/01/02 46074    MSwam retrigger for FTP disk space errors(RE,RS)
!       03/10/03 43915    WMiller remove obsolete stages
!--------------------------------------------------------------------

PROCESS_NAME = podtrg	! retrigger process for CDBDEL
TASK         = <xpoll -p $PATH_FILE -r podtrg >
COMMAND      = retrigger.pl           ! Name of the command procedure

DESCRIPTION  = 'Perform retriggering of process'
SYSTEM = OTFR
CLASS = otf

TIME_RANK            = 1           !Time trigger periodically
DELTA_TIME           = 000:00:10:00
POLLING_TIME         = 60
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! All other XPOLL states will cause process to go ABSENT.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = TRIG_OK

XPOLL_ERROR_COUNT = 20		! This many errors before process goes absent
!
! These are the retriggering conditions
!
ENV.SEARCH_OSF.RV  = z    ! search condition for retrigger candidate
ENV.SET_OSF.RV     = w    ! action to take when this candidate is found
ENV.SEARCH_OSF.MV  = z    ! search condition for retrigger candidate
ENV.SET_OSF.MV     = w    ! action to take when this candidate is found
ENV.SEARCH_OSF.DC  = z    ! search condition for retrigger candidate
ENV.SET_OSF.DC     = w    ! action to take when this candidate is found
ENV.SEARCH_OSF.RE  = z    ! search condition for retrigger candidate
ENV.SET_OSF.RE     = w    ! action to take when this candidate is found
ENV.SEARCH_OSF.RS  = z    ! search condition for retrigger candidate
ENV.SET_OSF.RS     = w    ! action to take when this candidate is found
ENV.SEARCH_OSF.WK  = o    ! search condition for retrigger candidate
ENV.SET_OSF.WK     = w    ! action to take when this candidate is found
