mon [-d] [-u user] [-r req] command argument ...
glenda
for safty.none
under multiple users environment. Otherwise it is difficult (or impossible) to keep your files from some ones mischief. This is true not only to Pegasus but also to all httpd.
Mon is a program to run given command as given user. It is supposed the command is a long living one such as httpd. Then, mon monitors execution of the command. If the command exits by some reasons, mon automatically rerun it.
(for safty mon does not rerun it if the command exits within 5 seconds.)
The following conditions are required so that mon can create a process owned by user web
:
web
must be registered in /adm/users
.web
.hostid
in /lib/ndb/auth
.
-d
-u user
user
". If mon is combined with Pegasus the "web
" is recommended as the "user
". If "user
" is ".
" mon runs as the uid who invoked mon. Without this option, mon runs as user "none
".-r req
b=/usr/local/bin/$objtype $b/mon -du web $b/httpd -uM c=/sys/lib/tls/cert r=/sys/lib/tls/key $b/mon -du web -r $r $b/httpd -uM -p443 -c $c
/usr/local/bin/$objtype/mon
/sys/log/mon
.