!--------------------------------------------------------------------
!
!      cdbpau RESOURCE FILE
!
!
!	This file is used to define various values for the calibration
!	update command CDBPS2.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER User     Description
! ----- -------- ------ ------   -------------------------------------
!       04/11/03 48141  MSwam    first version
!       05/06/04 48141  MSwam    add outgoing dirs for trailer pick-up
!       05/17/04 48141  Sherbert P1 retrigger shouldn't interfere 
!       02/18/05 51570  Sontag   Handle unexpected error statuses
!--------------------------------------------------------------------
!
COMMAND                 = 'cdb_pause.sh ^CL'
TASK                    = <xpoll -p $PATH_FILE -r cdbpau >
!
CLASS = cdb
DESCRIPTION = 'CDBS pause to allow remote site installation'
SYSTEM = CDBS
!
OSF_RANK           = 1
OSF_TRIGGER1.PS    = w          ! Need a 'Wait' flag to proceed
OSF_TRIGGER1.DATA_ID = ref
OSF_TRIGGER1.DK    = _          ! If DK!="_" then this is a retrigger
                                ! So, if PS=w but DK is NOT _ this
                                ! process will NOT retrigger DK which
                                ! is probably a Good Thing

OSF_PROCESSING.PS  = z          ! Use 'sleep' indicator to remind
                                ! operator that this takes a while

OSF_NORMAL.PS      = c          ! Normal: Completed this process
OSF_NORMAL.DK      = w

OSF_ERROR.PS       = e          ! Error:  Set the error flag

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 1          !this many XPOLL errors will cause the
                                !process to go ABSENT
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_ERROR.PS = x              ! handle entirely unexpected failure cases

! pause for this interval to allow the remote sites to install
! the delivery
ENV.WAIT_SECONDS            = wait_seconds

! directories to pick up remote transfer trailers from, and to copy them to
ENV.CDB_IN_DIR              = cdbs_input_dir
ENV.OUTGOING1_DIR           = outgoing_remote1_dir !area for copying to site1
ENV.OUTGOING2_DIR           = outgoing_remote2_dir !area for copying to site2
