Index: /etc/sysconfig/httpd =================================================================== --- /etc/sysconfig/httpd (revision 0) +++ /etc/sysconfig/httpd (revision 11) @@ -0,0 +1,5 @@ +# If you want to force proxied: +# for proxied Apache2 mode - you could add -DA1PROXIED +# for proxied httpd-perl mode - you could add -DPERLPROXIED +DEFINE="-DPERLPROXIED" + Index: /etc/rc.d/init.d/httpd =================================================================== --- /etc/rc.d/init.d/httpd (revision 10) +++ /etc/rc.d/init.d/httpd (revision 11) @@ -13,6 +13,9 @@ # Source function library. . /etc/init.d/functions +if [ -f /etc/sysconfig/httpd ]; then + . /etc/sysconfig/httpd +fi BINARY=/usr/sbin/httpd PIDFILE=/var/run/httpd.pid @@ -63,7 +66,7 @@ fi fi start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" \ - --expect-user root --name libhttpd.ep -- httpd + --expect-user root --name libhttpd.ep -- "$BINARY" $DEFINE RETVAL=$? return $RETVAL } @@ -71,7 +74,7 @@ stop() { stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" \ - --expect-user root --name libhttpd.ep -- httpd + --expect-user root --name libhttpd.ep -- "$BINARY" $DEFINE if [ "$1" != "nocheck" -a -f "$PERLPIDFILE" ]; then echo "Warning: httpd-perl is running, check 'service httpd-perl extendedstatus'" passed "httpd-perl already running" @@ -84,7 +87,7 @@ { msg_reloading httpd stop_daemon --pidfile "$PIDFILE" \ - --expect-user root --name libhttpd.ep -HUP -- httpd + --expect-user root --name libhttpd.ep -HUP -- "$BINARY" $DEFINE RETVAL=$? return $RETVAL }