Gather Apache2 error log

Change-Id: Iceb4a00b99a241e8dbb1510c2426f4f69f48ea51
This commit is contained in:
Davanum Srinivas
2014-07-15 14:07:07 -04:00
committed by Davanum Srinivas (dims)
parent d24d3ccacc
commit 7b3f759d29

View File

@@ -477,6 +477,17 @@ function cleanup_host {
sudo cp /var/log/httpd/horizon_error.log $BASE/logs/horizon_error.log
fi
# apache2
if is_ubuntu; then
if [ -f /var/log/apache2/error.log ] ; then
sudo cp /var/log/apache2/error.log $BASE/logs/apache2_error.log
fi
elif is_fedora; then
if [ -f /var/log/httpd/error.log ] ; then
sudo cp /var/log/httpd/error.log $BASE/logs/apache2_error.log
fi
fi
# rabbitmq logs
if [ -d /var/log/rabbitmq ]; then
sudo mkdir $BASE/logs/rabbitmq/