[squid-users] cannot set pid_filename in an include

Amos Jeffries squid3 at treenet.co.nz
Thu Nov 16 08:23:16 UTC 2017


On 16/11/17 20:26, Vieri wrote:
> Hi,
> 
> Correct me if I'm wrong, but this may be a parsing bug:
> 
> # /etc/init.d/squid.test start
> * /etc/squid/squid.test.conf must set pid_filename to
> *    /run/squid.test.pid
> 
> 
> However, I have:
> 
> # grep include /etc/squid/squid.test.conf
> include /etc/squid/squid.custom.test
> include /etc/squid/squid.custom.rules.test
> 
> 
> # grep pid_filename /etc/squid/squid.custom.test
> pid_filename /run/squid.test.pid
> 
> Squid Object Cache: Version 3.5.27-20171101-re69e56c
> 

Works for me:

/squid/sbin/squid-3.5 -k parse -f /squid/test_pidfinc.conf
2017/11/16 21:18:47| Startup: Initializing Authentication Schemes ...
2017/11/16 21:18:47| Startup: Initialized Authentication Scheme 'basic'
2017/11/16 21:18:47| Startup: Initialized Authentication Scheme 'digest'
2017/11/16 21:18:47| Startup: Initialized Authentication Scheme 'negotiate'
2017/11/16 21:18:47| Startup: Initialized Authentication Scheme 'ntlm'
2017/11/16 21:18:47| Startup: Initialized Authentication.
2017/11/16 21:18:47| Processing Configuration File: 
/squid/test_pidfinc.conf (depth 0)
2017/11/16 21:18:47| Processing: include /squid/foo_pidf_nc.conf
2017/11/16 21:18:47| Processing Configuration File: 
/squid/foo_pidf_nc.conf (depth 1)
2017/11/16 21:18:47| Processing: pid_filename /squid/foo_custom.id


Note how the complaint is coming from your init script, not Squid.

Amos


More information about the squid-users mailing list