Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev

httpd initd daemon

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


biran at lucent

Jun 29, 2009, 2:38 AM

Post #1 of 4 (304 views)
Permalink
httpd initd daemon

i would like to set the httpd instance to run as standard linux daemon. the
daemon should be controlled by the init daemon. the problem is that the
apachectl that runs the httpd is starting the main server process then
forking N StarServers and return 0 or something else. I would like it to be
hang while it run i.e. right before exiting addin select command that will
listen on some signal, like SIGTERM.
is there any way to add it? if so can somebody recomands what is the best
place to make the change? is there allready such feature?
--
View this message in context: http://www.nabble.com/httpd-initd-daemon-tp24251132p24251132.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.


graham.dumpleton at gmail

Jun 29, 2009, 3:04 AM

Post #2 of 4 (283 views)
Permalink
Re: httpd initd daemon [In reply to]

2009/6/29 Yahav <biran[at]lucent.com>:
>
> i would like to set the httpd instance to run as standard linux daemon. the
> daemon should be controlled by the init daemon. the problem is that the
> apachectl that runs the httpd is starting the main server process then
> forking N StarServers and return 0 or something else. I would like it to be
> hang while it run i.e. right before exiting addin select command that will
> listen on some signal, like SIGTERM.
> is there any way to add it? if so can somebody recomands what is the best
> place to make the change? is there allready such feature?

Have you tried:

httpd -DFOREGROUND

instead of apachectl.

Read the httpd manual page and Google search on that for more information.

Graham


biran at lucent

Jun 29, 2009, 5:17 AM

Post #3 of 4 (282 views)
Permalink
Re: httpd initd daemon [In reply to]

many thanks

Graham Dumpleton-2 wrote:
>
> 2009/6/29 Yahav <biran[at]lucent.com>:
>>
>> i would like to set the httpd instance to run as standard linux daemon.
>> the
>> daemon should be controlled by the init daemon. the problem is that the
>> apachectl that runs the httpd is starting the main server process then
>> forking N StarServers and return 0 or something else. I would like it to
>> be
>> hang while it run i.e. right before exiting addin select command that
>> will
>> listen on some signal, like SIGTERM.
>> is there any way to add it? if so can somebody recomands what is the best
>> place to make the change? is there allready such feature?
>
> Have you tried:
>
> httpd -DFOREGROUND
>
> instead of apachectl.
>
> Read the httpd manual page and Google search on that for more information.
>
> Graham
>
>

--
View this message in context: http://www.nabble.com/httpd-initd-daemon-tp24251132p24253128.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.


biran at lucent

Jun 29, 2009, 5:18 AM

Post #4 of 4 (282 views)
Permalink
Re: httpd initd daemon [In reply to]

many thanks it is working.

Graham Dumpleton-2 wrote:
>
> 2009/6/29 Yahav <biran[at]lucent.com>:
>>
>> i would like to set the httpd instance to run as standard linux daemon.
>> the
>> daemon should be controlled by the init daemon. the problem is that the
>> apachectl that runs the httpd is starting the main server process then
>> forking N StarServers and return 0 or something else. I would like it to
>> be
>> hang while it run i.e. right before exiting addin select command that
>> will
>> listen on some signal, like SIGTERM.
>> is there any way to add it? if so can somebody recomands what is the best
>> place to make the change? is there allready such feature?
>
> Have you tried:
>
> httpd -DFOREGROUND
>
> instead of apachectl.
>
> Read the httpd manual page and Google search on that for more information.
>
> Graham
>
>

--
View this message in context: http://www.nabble.com/httpd-initd-daemon-tp24251132p24253136.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.

Apache dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.