You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by shahid <s....@gmail.com> on 2006/11/27 11:18:02 UTC

[users@httpd] Controlling an external program using Apache

I am a newbie.

I have the following requirements with Apache 2.2.

1) An executable needs to be started when Apache has started
2) The same executable needs to be stopped when Apache is going to
shutdown.

I would like to know whether any provision is available in Apache
configuration or not.
Please let me know if they is any way to achieve this requirement.

Your help will be really appreciated.

Looking for early responses.

Thanks & Regards,
Shahid

Re: [users@httpd] Controlling an external program using Apache

Posted by Nick Kew <ni...@webthing.com>.
On Mon, 27 Nov 2006 15:48:02 +0530
shahid <s....@gmail.com> wrote:

> I am a newbie.
> 
> I have the following requirements with Apache 2.2.
> 
> 1) An executable needs to be started when Apache has started
> 2) The same executable needs to be stopped when Apache is going to
> shutdown.

Well, you could write a module to do that.  But there are subtleties
to consider, like what you want to happen when apache is restarted.

But if it's an existing program and you want to use it black-box,
you might prefer to tie it in to apachectl.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org