Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124724 - net-www/apache2: new init script option/function "check"
Summary: net-www/apache2: new init script option/function "check"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 17:25 UTC by Wolfram Schlich (RETIRED)
Modified: 2006-06-04 21:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for /etc/init.d/apache2 (apache2-check.diff,1.58 KB, patch)
2006-03-02 17:26 UTC, Wolfram Schlich (RETIRED)
Details | Diff
Screenshot of /etc/init.d/apache2 check (apache2-check.png,21.41 KB, image/png)
2006-03-02 17:29 UTC, Wolfram Schlich (RETIRED)
Details
Screenshot of /etc/init.d/apache2 check -- with failed checks (apache2-check-failed.png,20.45 KB, image/png)
2006-03-02 17:30 UTC, Wolfram Schlich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.