--- /etc/init.d/apache2.old 2011-02-22 12:34:51.000000000 -0600 +++ /etc/init.d/apache2 2011-06-13 13:10:45.364774835 -0500 @@ -170,6 +170,17 @@ case $1 in start) log_daemon_msg "Starting web server" "apache2" + ( + # uses subshell to keep current env clear + . $APACHE_ENVVARS + if [ -d "$APACHE_LOG_DIR" ] ; then + return 0 + elif mkdir "$APACHE_LOG_DIR" ; then + return 0 + else + return 1 + fi + ) || log_end_msg 1 if $APACHE2CTL start; then if check_htcacheclean ; then log_progress_msg htcacheclean @@ -274,3 +285,4 @@ exit 1 ;; esac +