Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124724

Summary: net-www/apache2: new init script option/function "check"
Product: Gentoo Linux Reporter: Wolfram Schlich (RETIRED) <wschlich>
Component: Current packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: agraf
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for /etc/init.d/apache2
Screenshot of /etc/init.d/apache2 check
Screenshot of /etc/init.d/apache2 check -- with failed checks

Description Wolfram Schlich (RETIRED) gentoo-dev 2006-03-02 17:25:29 UTC
The attached patch extends /etc/init.d/apache2 by an option/function "check" which sends HTTP HEAD requests to all listening ip+port sockets to see if apache is still alive.
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2006-03-02 17:26:09 UTC
Created attachment 81163 [details, diff]
Patch for /etc/init.d/apache2
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2006-03-02 17:27:41 UTC
It should be considered kind of proof-of-concept.
It depends on lsof, grep, cut, sort, uniq, head, nc and openssl.
Comment 3 Wolfram Schlich (RETIRED) gentoo-dev 2006-03-02 17:29:30 UTC
Created attachment 81165 [details]
Screenshot of /etc/init.d/apache2 check
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2006-03-02 17:30:55 UTC
Created attachment 81166 [details]
Screenshot of /etc/init.d/apache2 check -- with failed checks
Comment 5 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-06-04 21:18:28 UTC
There are many software packages out there that do checking of this type, it's not really appropriate for an init script.