home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13h.zip / events.cfg < prev    next >
Text File  |  1999-10-31  |  3KB  |  63 lines

  1. ;This is the SRE-http "events" configuration file
  2. ;See EVENTS.DOC for a full description.
  3. ;
  4. ;Basic Structure of file:
  5. ;  Event descriptions are seperated by blank lines.
  6. ;  Lines beginning with ; are comments, and are ignored.
  7. ;  Event descriptions have two fields, a TYPE and an ACTION field. An
  8. ;  optional third field, RETAIN, can also be specified.
  9. ;  Note that the these fields, etc. are case insensitive.
  10. ;  Alive events are executed in order of appearance.
  11. ;
  12. ;Description of fields:
  13. ;  type: FILE xxx, SEMAPHORE xxx, or PROCEDURE xxx arg
  14. ;
  15. ;      Where xxx is one of:
  16. ;         file: fully_qualified file name (a "temporary file")
  17. ;         semaphore: valid semaphore (must being with \SEM32\)
  18. ;         procedure: fully qualified filename (an external REXX procedure)
  19. ;                     arg is optional -- it is sent to the external rexx proc
  20. ;                     If it returns a 1, then the  "event occured". 
  21. ;
  22. ;  action: RESET, SHUTDOWN, SUSPEND, RESUME, INTERPRET zzz, 
  23. ;           CALL zzz arglist , EXEC zzz
  24. ;     
  25. ;     RESET: reset sre parameters (re-read parameter files)
  26. ;     SHUTDOWN: shutdown GoServe (using the GoServe CLOSE directive)
  27. ;     SUSPEND: refuse further connections
  28. ;     RESUME: cancel a SUSPEND (start accepting further connections)
  29. ;     INTERPRET: zzz is "interpretable" REXX code, which can span
  30. ;                multiple lines
  31. ;                zzz can occupy multiple lines
  32. ;     CALL: zzz is a fully qualified name of an external REXX procedure
  33. ;           arglist is an "argument" the procedure is called with
  34. ;     EXEC: zzz is a fully qualified name of an executable, or batch, file
  35. ;
  36. ;  retain:  YES or NO
  37. ;         If RETAIN: YES, then do NOT reset a semaphore, and 
  38. ;         do not delete a temporary file
  39. ;         If RETAIN: NO, then do reset (or delete).
  40. ;         The default is RETAIN: NO.
  41. ;
  42. ;Example:
  43. ;
  44. ;   Type: SEMAPHORE \SEM32\SHUTDOWN_1
  45. ;   Action: shutdown
  46. ;
  47. ;   Type: F e:\goserve\flags\flag.1
  48. ;   Action: Call e:\goserve\flagdo.cmd  1
  49. ;   Retain: Yes
  50. ;
  51. ;   ; note: be sure to end each "line", of a block of interpretable REXX code, 
  52. ;   ; with a semi-colon
  53. ;   Type: Procedure check_time
  54. ;   Action: interpret atime=time('n') ;
  55. ;            adate=date('n') ;
  56. ;            call pmprintf("Today's date is: "||atime||' '||adate) 
  57. ;
  58. ;   P: the external procedure will be called (with no arguments).
  59. ;
  60. ; ------- End of description -----------------------------------------------
  61.  
  62.  
  63.