supervise apache with daemontools
        Posted  
        
            by 
                perlwle
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by perlwle
        
        
        
        Published on 2010-02-24T03:22:27Z
        Indexed on 
            2012/07/10
            3:17 UTC
        
        
        Read the original article
        Hit count: 538
        
apache2
I am trying to setup daemontools for two apaches in one server. one apache 2.2 listening on port 80 proxy request to a second apache 1.3 listening on port 8888. ./run script as following:
#!/bin/sh
# apache 1.3
exec /apache_1_3/apache/bin/httpd -F
#!/bin/sh
# apache 2.2
exec /apache_2_2/apache/bin/httpd -D FOREGROUND
daemontools monitors both apache fine. however, If I stop apache2.2 (using svc -t or apachectl), the apache 1.3 will see the following error in error_log
[crit] (98)Address already in use: make_sock: could not bind to port 8888
I had to manually apachectl stop the apache1.3 to stop the error message clobber the log file.
There is no such problem before using daemontools.
any idea why this is happening?
© Server Fault or respective owner