Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ siomonit — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

2.0;siomonit (sio_process_monitor), revision 2.0, 85/03/28
SIOMONIT (SIO_PROCESS_MONITOR) -- Support repeated logins on an SIO line.
usage:  SIOMONIT pathname


FORMAT

  SIOMONIT pathname


  SIOMONIT   supports   repeated   logins  on  SIO  lines,  independent  of  any
  login/logout activity at the node terminal.  SIOMONIT must  be  invoked  as  a
  server  (CPS)  and  SIOLOGIN  must  be  a  manager  within the LOGIN protected
  subsystem for the login procedure to be successful (See HELP SIOLOGIN).


ARGUMENTS

  pathname
  (required)         Specify the file containing argument lists to be passed  to
                     invocations of SIOLOGIN.  A maximum of three argument lists
                     (one per SIO line) are processed.  See the  "ARGUMENT  LIST
                     FORMAT" section below for details about the argument lists.



ARGUMENT LIST FORMAT

  The  argument  list  file contains a sequence of argument lists, one per line.
  Each argument list in the file must have the form:

   [-Repeat] siologin_arg_list

  where

   -Repeat
      means re-invoke this process each time it returns.

   siologin_arg_list
      is an siologin argument list of the form:

      /DEV/SIOx [[-dialin] [-n processname] prog [ args ...]]

  For each argument list, SIOMONIT invokes:

      /sys/siologin/siologin siologin_arg_list

  Comments may be included in the SIOMONIT file and must begin with #.

  Arguments are passed to SIOLOGIN unvalidated except that the first one must be
  /DEV/SIOX,  specifying  the SIO line to use.  If the invocation fails, or if a
  process returns from its invocation within 15 seconds, SIOMONIT will  wait  15
  minutes  before  attempting  to start the process again. SIOMONIT re-reads the
  argument file each time a child process dies. An asynchronous quit fault  will
  cause  SIOMONIT  to re-read the argument file and try to restart processes for
  unused lines.  A stop fault causes SIOMONIT to exit. (Processes  that  do  not
  have  the  -repeat argument are given only one successful start per reading of
  the input file.)  The SIGP command may be used to send stop and  quit  signals
  to SIOMONIT.

  A  frequent  cause of failure of an SIOLOGIN process to stay alive is a locked
  SIO line (/DEV/SIOx). For example, if a user does not send a  CTRL/Z  to  quit
  from  an  SIO  process  on a locally connected terminal, that SIO line remains
  locked, and unusable.  To free up the line, use SIGP -Q to prod SIOMONIT  into
  trying again.

  If  SIOMONIT  terminates  and  its  child processes do not also terminate, the
  child processes are, in effect, orphans.  The existence of  the  orphans  will
  interfere  with  SIOMONIT's  attempts  to start new child processes.  SIOMONIT
  will not be notified  when  the  orphan  processes  terminate.    Instead,  if
  SIOMONIT  detects  the orphan's existence, it rechecks every 15 minutes to see
  if the orphans have died.   If  the  orphan  processes  have  ended,  SIOMONIT
  restarts  the  SIOLOGIN  processes as directed in its argument list.  SIOMONIT
  itself never kills a child process, its own process, or an orphan.

  Should this scenario occur, a user may have to wait 15  minutes  before  being
  able to complete the SIOLOGIN process.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026