I use a small script in a jail to check if Apache is running and if
not, restart it.
#if ps -ax | grep -v grep | grep -i httpd
# echo "Apache is alive......"
# echo "Apache is dead, but will be launched."
However, if I want to check the host's Apache, ps -ax sees all of the
"httpd" lines including the jail and the host:
(Jail) 83787 ?? SsJ 0:07.71 /usr/local/sbin/httpd -DSSL
(host) 98089 ?? Ss 32:49.44 /usr/local/sbin/httpd -DNOHTTPACCEPT
How can I modify my script to see only the host based on the bottom
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"