-u user
" is specified./usr/local/bin/$objtype/mon
mon [-d] [-u user] [-r req] command argument ...
user
" and monitors the httpd to invoke subsequent httpd
if it is killed by someone.command
is the path to Pegasus httpd, and arguments are those of httpd.-d
-u user
user
". usually "web
". If "user
" is ".
" mon runs as the uid who invoked mon. Without this option, mon runs as user "none
".-r req
command
argument ...
/sys/log/mon
. Mon terminates if the command exits in 5 seconds; this is a protection in case of error. If you want to terminate mon, send "kill note" to the mon.-u user
" is discarded. If mon is executed by bootes (default hostowner of cpu servers), password is not required. If you want to run mon on terminals, change /lib/ndb/auth
of auth server. Mine is:hostid=bootes uid=!sys uid=!adm uid=* hostid=arisawa uid=web
web
.term% mon -u web me web 123 0:00 0:00 180K Pread ps --rw-rw-rw- M 53 web none 0 Dec 15 22:21 /usr/none/tmp/me term%where "
me
" is a program:#!/bin/rc # note: chmod 777 /usr/none/tmp f=/usr/none/tmp/me ps|grep ' ps$' if(test -e $f) rm $f touch $f; ls -l $fand locate "
me
" at /usr/local/bin/rc
and change /lib/namespace.local
to:bind -a /usr/local/bin/386 /bin bind -a /usr/local/bin/rc /binand then confirm
. /lib/namespace.localis included in your
/lib/namespace
.
b=/usr/local/bin/$objtype $b/mon -du web $b/httpd -suM