Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: BHLBCK

BHLBCK.m

Go to the documentation of this file.
  1. BHLBCK ; cmi/flag/maw - BHL Check a background task ;
  1. ;;3.01;BHL IHS Interfaces with GIS;**2,11,14**;OCT 15, 2002
  1. ;
  1. ;
  1. ;this routine will check to see if the task is active and shutdown and
  1. ;restart on the fly if not.
  1. ;
  1. CHK(BP,SH) ;EP - check the task status
  1. S BP=$O(^INTHPC("B",BP,0))
  1. I 'BP Q 1
  1. I $$VER^INHB(BP) Q 1
  1. D SHUT
  1. H 10
  1. D START
  1. Q 0
  1. ;
  1. RES(BP,SH) ;EP - restart the link passed in, task man only
  1. S BP=$O(^INTHPC("B",BP,0))
  1. I 'BP Q 1
  1. D SHUT
  1. H 120 ;maw 4/19/2006 increased hang time to 120 from 60
  1. D START
  1. Q 0
  1. ;
  1. SHUT ;EP - shut down the process
  1. Q:'$G(SH) ;quits when shutdown flag is not present
  1. N X
  1. F X=1:1:100 K ^INRHB("RUN",BP)
  1. S X=$$SRVRHNG^INHB(BP)
  1. Q
  1. ;
  1. START ;EP - restart the process
  1. S X=$$A^INHB(BP)
  1. Q
  1. ;