From 1af7a22460dafe12f22f9b564d946f3d583f4cb0 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 6 Dec 2015 03:44:47 +0100 Subject: debuging images and improve startup display --- Services/php/run.sh | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) (limited to 'Services/php/run.sh') diff --git a/Services/php/run.sh b/Services/php/run.sh index e365b4e..a092c56 100644 --- a/Services/php/run.sh +++ b/Services/php/run.sh @@ -6,9 +6,46 @@ if [[ "$0" == *"run.sh" && ! $1 = "" ]];then eval "$@"; fi +function display_container_php_header { + echo "+=====================================================" + echo "| Container : $HOSTNAME" + echo "| OS : $( BEGIN APACHE + PHP CONFIGURATION" +} + +# End configuration process just before starting daemon +function end_php_config { + echo "=> END APACHE + PHP CONFIGURATION" +} + check_httpd_environment | tee -a $STARTUPLOG -display_container_httpd_header | tee -a $STARTUPLOG -begin_config | tee -a $STARTUPLOG -end_config | tee -a $STARTUPLOG -display_container_started | tee -a $STARTUPLOG +display_container_php_header | tee -a $STARTUPLOG +begin_php_config | tee -a $STARTUPLOG +end_php_config | tee -a $STARTUPLOG start_daemon -- cgit v1.2.3