This directory contains example shell scripts for maintaining an
rwho/ruptime cache and to start the rwhod++ program at boot-time.
You may want to edit the site-specific parameters at the beginning of
each file before using them at your system.


S91rwhod     is the boot-time startup script for systems using the
             SysV-style system initialization.  You may want to copy
             it to /etc/init.d/rwhod and create links
             /etc/rc1.d/S91rwhod and maybe rc[01].d/K10rwhod (the
             exact sequence numbers 91 and 10 are not mandatory).
	     Some small changes are required for BSD-style systems.

rwhocache    is a bash script to be run on the same machine as rwhod++.
             It maintains a cache for rwho/ruptime as explained in
             ../README.  You need GNU bash to use this script.
             Warning: the script apparently triggers a bug in bash
             version 1.14.6 under SPARC/Solaris 2.4.  If the script
             runs longer than a few days, the bash process gets very
             large (sometimes more than 50 Mbytes) and finally crashes.
             I don't know if this occurs with other bash versions or
             on other platforms as well.

chk_rwhocache
             is a shell script that periodically checks if rwhocache
             is still running and restarts it if necessary.  This may
             be useful because rwhocache triggers a bug in certain
             versions of bash which ultimately crashes it.  The script
             is started from the sample S91rwhod.

rwho.sh      are shell scripts intended to replace the vendor-supplied
ruptime.sh   versions of rwho and ruptime if you are running
             rwhocache.  Just copy them to /usr/local/bin/rwho and 
             /usr/local/bin/ruptime or whereever you are installing
             new commands.  You may want to remove the original
             /usr/bin/rwho and /usr/bin/ruptime (and/or /usr/ucb/rwho
             and /usr/ucb/ruptime).

--
Oliver Laumann <net@informatik.uni-bremen.de>           $Revision: 1.4 $
