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?