diff options
-rw-r--r-- | recipes/squid/squid.inc | 2 | ||||
-rw-r--r-- | recipes/squid/squid/squid.init | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/recipes/squid/squid.inc b/recipes/squid/squid.inc index 3355c2815a..477335b152 100644 --- a/recipes/squid/squid.inc +++ b/recipes/squid/squid.inc @@ -1,6 +1,6 @@ DESCRIPTION = "Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more" LICENSE = "GPLv2" -INC_PR = "r9" +INC_PR = "r10" DEPENDS = "openssl openssl-native openldap" SQ_MAJ = "${@bb.data.getVar('PV',d,1).split('.')[0]}" diff --git a/recipes/squid/squid/squid.init b/recipes/squid/squid/squid.init index 4364f48f47..21ccf224e7 100644 --- a/recipes/squid/squid/squid.init +++ b/recipes/squid/squid/squid.init @@ -3,7 +3,13 @@ DAEMON=/usr/sbin/squid NAME=squid DESC="Squid HTTP proxy" PIDFILE=/var/run/squid.pid -SQUID_ARGS="-D -sY" + +# -D option is obsolete in squid version 3, so avoid warning +if $DAEMON -v | grep -q Version\ 3; then + SQUID_ARGS="-sY" +else + SQUID_ARGS="-D -sY" +fi test -f $DAEMON || exit 0 |