The question of Apache deamontools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ApacheGroup Mem:

hello,boys~

I use the deamontools to control the apache.
run script as following(refer to the doc of www):
-------------------------------------
#!/bin/sh

CONF=/etc/httpd/conf/httpd.conf
DAEMON=/usr/sbin/httpd
DAEMON_ARGS="-f $CONF -DNO_DETACH -DFOREGROUND -d /etc/ahttpd -DHAVE_SSL"

exec 2>&1

exec pgrphack $DAEMON $DAEMON_ARGS
-------------------------------------

1.
exec 2>&1
This code redirect the stderr to stdout,
but what is the funcion of this code? why add it?(I find that the doc of internet almost all of them add the code)
when delete it, what is happened?
2.
when use the deamontools to control the apache.
for example(process):
---------------------------
root 4418   4416       supervise ahttpd
                       |
root 20110 4418 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DNO_DETACH -DFOREGROUND -d /etc/httpd -DHAVE_SSL
                          |
ipcom 20113 20110 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DNO_DETACH -DFOREGROUND -d /etc/httpd -DHAVE_SSL ipcom 20114 20110 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DNO_DETACH -DFOREGROUND -d /etc/httpd -DHAVE_SSL ipcom 20115 20110 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DNO_DETACH -DFOREGROUND -d /etc/httpd -DHAVE_SSL ipcom 20116 20110 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DNO_DETACH -DFOREGROUND -d /etc/httpd -DHAVE_SSL
--------------------------
If I only kill the parent httpd (20110), apache cannot restart.
If I kill all the  httpd (20110,20113 ...) , apache can restart.

The reason is?

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux