From 23fb7e9440a69af3d6e2ca88f34cb3242eeb3918 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 02 Nov 2010 06:22:44 -0400
Subject: [PATCH] apache_plugin: Wait a few seconds before apache gets tested again after a restart.

---
 server/plugins-available/apache2_plugin.inc.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 082c29b..2c7d63f 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -894,6 +894,9 @@
 			$app->log("Apache status is: ".$apache_online_status_before_restart,LOGLEVEL_DEBUG);
 
 			$app->services->restartService('httpd','restart');
+			
+			// wait a few seconds, before we test the apache status again
+			sleep(2);
 		
 			//* Check if apache restarted successfully if it was online before
 			$apache_online_status_after_restart = $this->_checkTcp('localhost',80);

--
Gitblit v1.9.1