cannot set pid_filename in an include

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot set pid_filename in an include

Vieri
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

Thanks,

Vieri
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: cannot set pid_filename in an include

Amos Jeffries
Administrator
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
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: cannot set pid_filename in an include

Vieri
________________________________
From: Amos Jeffries <[hidden email]>
>
> Note how the complaint is coming from your init script, not Squid.


{Thanks,Sorry} again.

Vieri
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users