@@ -0,0 +1,45 @@
+#!/bin/bash
+
+pname=apache2
+: ${sysconfdir:=/etc/$pname}
+: ${sysconfig_apache:=/etc/sysconfig/$pname}
+
+test -z "$APACHE_MODULES" && . /usr/share/$pname/load_configuration
+apache_bin=$(/usr/share/$pname/find_mpm 2>/dev/null)
+APACHE_MPM=${apache_bin##*-}
+if [ -z "$APACHE_MPM" ]; then
+ echo >&2 Warning: no MPM found. Some modules are dependant on the type of MPM.
+fi
+
+#echo -n writing sysconfig.d/include.conf
+exec 3>$sysconfdir/sysconfig.d/include.conf
+echo >&3 "#
+# This file is created at apache start time by /usr/sbin/rc$pname. Do not edit it!
+#
+
+# as listed in APACHE_INCLUDE_* ($sysconfig_apache)
+"
+for file in $APACHE_CONF_INCLUDE_FILES; do
+ test ${file:0:1} = / || file=$sysconfdir/$file
+ if [ -e $file ]; then
+ echo >&3 Include $file
+ else
+ echo >&2 File $file from APACHE_CONF_INCLUDE_FILES not found. Ignored.
+ fi
+done
+
+# here, we do not want to use globbing. apache will do it
+set -o noglob
+for dir in $APACHE_CONF_INCLUDE_DIRS; do
+ test ${dir:0:1} = / || dir=$sysconfdir/$dir
+ if [ -d $dir -o -d /$(dirname $dir) ]; then
+ echo >&3 Include $dir
+ else
+ echo >&2 Directory $dir from APACHE_CONF_INCLUDE_DIRS not found. Ignored.
+ fi
+done
+set +o noglob
+
+echo >&3 -e "#\n"
+exec 3<&-
+#echo -n ". "
|