Mon
目次
Location
/usr/web/bin/$objtype/mon
Usage
mon [-d] [-u user] [-p passwdfile] cmdpath argument ...
Description
mon
is a program that is designed to be used with Pegasus httpd to protect against malicious cgi programs that attempt to kill httpd.
mon
invokes httpd to run asuser
and monitors the httpd to invoke subsequenthttpd
if it is killed by someone.
mon
should be executed by host owner.
cmdpath
is the path of Pegasus httpd, and arguments are of httpd.
-d
: run as a daemon-u user
: run as useruser
. usuallyweb
-p passwdfile
: password required to becomeuser
is placed in this file
Example
bind -a /usr/web/bin/386 /bin mon -du web -p /usr/web/lib/passwd /usr/local/bin/$cputype/httpd -suM
Note
Be careful that the contents in /usr/web/lib/passwd on network file server may be snooped by someone.