Restarting Apache Server
Hi,
I'm on CentOS 4.5 box and installed/configure two Apache server running on different ports ie (80 and 8080). They are working fine but when using the command "service httpd restart" or "/etc/init.d/httpd restart" will restart Apache running on port 80 but killed Apache running on port 8080. I do not want to touch Port 8080 Apache while need frequent reload/restart of Port 80 Apache.
Now I'm using following command to restart Apache running on Port 80.
/usr/sbin/apachectl stop
/usr/sbin/apachectl start
I'm using the above commands in perl script. Its working fine but not every time. Sometimes Apache didnt restarted.
Can anyone please give me any hint or a better way to restart the Apache service running on different port?
Thanks
|