Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 913227
Collapse All | Expand All

(-)file_not_specified_in_diff (-8 / +3 lines)
Line  Link Here
0
-- a/init.d/apache2
0
++ b/init.d/apache2
Lines 36-48 depend() { Link Here
36
       use dns entropy logger mysql netmount postgresql
36
       use dns entropy logger mysql netmount postgresql
37
       after sshd
37
       after sshd
38
       if ! echo ${rc_need} | grep -Fq "net." ; then
38
       if ! echo ${rc_need} | grep -Fq "net." ; then
39
               local x warn_addr
39
               local warn_addr
40
               for x in $(virtualhosts 2>/dev/null | grep '^\(\[\|\*:\|\)[[:digit:]]' | sed 's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
40
               warn_addr="$(virtualhosts 2>/dev/null | sed -nre 's/^([^ *]+:[0-9]+)[[:space:]].*/\1/p' | tr '\n' ' ')"
41
                       case "${x}" in
42
                               \*:80|\*:443) ;;
43
                               *) warn_addr="${warn_addr} ${x}" ;;
44
                       esac
45
               done
46
               if [ -n "${warn_addr}" ] ; then
41
               if [ -n "${warn_addr}" ] ; then
47
                       need net
42
                       need net
48
                       ewarn "You are binding an interface in you virtual hosts."
43
                       ewarn "You are binding an interface in you virtual hosts."

Return to bug 913227