Squid -k parse -f alternateconfig file

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

Squid -k parse -f alternateconfig file

Garbacik, Joe

I am using an alternate filename for my squid configuration and am trying to validate the file below going live with it. Should I be able to use both the –k parse and the –f filename options at the same time? It looks like “-k parse” is defaulting to only use only /etc/squid/squid.conf.

# squid –f /etc/squid/squid-20170912a.conf -k parse

2017/09/12 07:56:05| Startup: Initializing Authentication Schemes ...

2017/09/12 07:56:05| Startup: Initialized Authentication Scheme 'basic'

2017/09/12 07:56:05| Startup: Initialized Authentication Scheme 'digest'

2017/09/12 07:56:05| Startup: Initialized Authentication Scheme 'negotiate'

2017/09/12 07:56:05| Startup: Initialized Authentication Scheme 'ntlm'

2017/09/12 07:56:05| Startup: Initialized Authentication.

2017/09/12 07:56:05| Processing Configuration File: /etc/squid/squid.conf (depth 0)

FATAL: Unable to open configuration file: /etc/squid/squid.conf: (2) No such file or directory

Squid Cache (Version 3.5.20): Terminated abnormally.

CPU Usage: 0.014 seconds = 0.006 user + 0.008 sys

Maximum Resident Size: 29344 KB

Page faults with physical i/o: 0

 

Thanks.


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

Re: Squid -k parse -f alternateconfig file

Amos Jeffries
Administrator
On 13/09/17 00:01, Garbacik, Joe wrote:
> I am using an alternate filename for my squid configuration and am
> trying to validate the file below going live with it. Should I be able
> to use both the –k parse and the –f filename options at the same time?

Yes.

> It looks like “-k parse” is defaulting to only use only
> /etc/squid/squid.conf.
>
> # squid –f /etc/squid/squid-20170912a.conf -k parse

If that is a cut-n-paste the '-' on the 'f' is not a hyphen.

Otherwise, I'm not sure whats going on here. We have config regression
tests and other things explicitly using the -f and -k in exactly the
manner you are trying to use, so it is definitely working and checked
regularly.

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