From 1f86fa83855bab52618a1b2b25c506647d60f55e Mon Sep 17 00:00:00 2001 From: mis Date: Tue, 8 Aug 2000 08:14:02 +0000 Subject: [PATCH] - run with "-4" if IPV6_NETWORKING is off - HTTPD_OPTS added for httpd cmdline options Changed files: apache.init -> 1.8 apache.sysconfig -> 1.2 --- apache.init | 7 +++++-- apache.sysconfig | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apache.init b/apache.init index 14d4307..366dec2 100644 --- a/apache.init +++ b/apache.init @@ -27,7 +27,10 @@ if is_no "${NETWORKING}"; then msg_Network_Down httpd exit 1 fi - + +if is_no ${IPV6_NETWORKING}; then + HTTPD_OPTS="$HTTPD_OPTS -4" +fi # See how we were called. case "$1" in @@ -35,7 +38,7 @@ case "$1" in # Check if the service is already running? if [ ! -f /var/lock/subsys/httpd ]; then msg_starting httpd - daemon httpd + daemon httpd $HTTPD_OPTS RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd else diff --git a/apache.sysconfig b/apache.sysconfig index c096bab..78aeb77 100644 --- a/apache.sysconfig +++ b/apache.sysconfig @@ -2,3 +2,7 @@ # Nice level for apache SERVICE_RUN_NICE_LEVEL="+5" + +# Cmdline options +HTTPD_OPTS="" + -- 2.44.0