#47709: Squid3 Squid.wrapper suggest ----------------------------+-------------------------------- Reporter: plm_macports@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 2.3.3 Keywords: | Port: ----------------------------+-------------------------------- Hi, I had a lot of problems to start Squid3 and don't understand why. I could start Squid directly with a "squid -s" but not with launchctl plist or directly with the wrapper. The origin was that my configuration of "cache_dir" was in an other repertory than default. The wrapper test directly the "/opt/local/var/squid/cache" directory to test if cache directories exists… So, I suggest to modify the "Squid.wrapper" script to test in "squid.conf" file if "cache_dir" is set to default. A little bit like this: {{{ #!/bin/bash ……… if eval grep -q '^cache_dir ' /opt/local/etc/squid/squid.conf ; then CacheDir="$(grep '^cache_dir ' /opt/local/etc/squid/squid.conf | awk '{ print $3 }')" else CacheDir="/opt/local/var/squid/cache" fi ……… Start() { cd /opt/local/var/squid if [ ! -d "${CacheDir}/00" ]; then /opt/local/sbin/squid -s -z fi /opt/local/sbin/squid -s } ……… }}} Best regards -- Ticket URL: <https://trac.macports.org/ticket/47709> MacPorts <https://www.macports.org/> Ports system for OS X