/usr/local/bin/$objtype/mon
mon [-d] [-u user] [-r req] cmdpath argument ...
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 as user
and monitors the httpd to invoke subsequent httpd
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 user user
. usually web
-r req
: used for https support, where req
is factotum format of X.509 certificate signing request.
b=/usr/local/bin/$cputype $b/mon -du web $b/httpd -suM c=/sys/lib/tls/cert k=/sys/lib/tls/key $b/mon -du web -r $k $b/httpd -suM -p443 -c $c