]> git.pld-linux.org Git - packages/apache.git/commitdiff
- run with "-4" if IPV6_NETWORKING is off
authormis <mis@pld-linux.org>
Tue, 8 Aug 2000 08:14:02 +0000 (08:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- HTTPD_OPTS added for httpd cmdline options

Changed files:
    apache.init -> 1.8
    apache.sysconfig -> 1.2

apache.init
apache.sysconfig

index 14d4307f4368d021f6b26e2357540a6764ad8118..366dec223a38140c23d61417697ae7e1125cfaf7 100644 (file)
@@ -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
index c096bab175d33ced5c22d02686234255db74dd19..78aeb7799bdea65dda94544e5a8bd56692a840db 100644 (file)
@@ -2,3 +2,7 @@
 
 # Nice level for apache
 SERVICE_RUN_NICE_LEVEL="+5"
+
+# Cmdline options 
+HTTPD_OPTS=""
+
This page took 0.035009 seconds and 4 git commands to generate.