Since writing this, I found two relevant entries on CPAN:
* App::Control - Same basic idea, but doesn't have the server-specific
features - also not easily subclassable, as all commands are handled
in a giant case statement :)
* Lighttpd::Control - Same basic idea, but just for lighttpd, obviously
I'm guessing that my code, with subclassing, could work equally well
for apache, lighttpd, and HTTP::Server::Simple.
Jon
On Jun 5, 2009, at 2:21 PM, Jonathan Swartz wrote:
Over the years I've developed (as I'm sure many have :)) a small
home-grown replacement for apachectl, to make start/stop/restart
easier. It's in library form, and among other things it
* detects whether the server is actually running, by contacting the
port
* waits to make sure the server starts properly, and shows the error
logs if it fails
* detects and removes out-of-date httpd.pid files
Now's the perfect time to ask, is there something out there like
this? If not, does this seem useful for CPAN, as, say,
Server::Control?
Jon