Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reload config from outside docker? #48

Closed
39ff opened this issue Sep 11, 2021 · 4 comments
Closed

How to reload config from outside docker? #48

39ff opened this issue Sep 11, 2021 · 4 comments

Comments

@39ff
Copy link

39ff commented Sep 11, 2021

SIGHUP does not seem to work

docker kill --signal=SIGHUP mysquidcontainername
@b4tman
Copy link
Owner

b4tman commented Sep 11, 2021

Hello

please check logs with docker logs mysquidcontainername | grep Reconfiguring and docker logs mysquidcontainername | grep "Processing Configuration File"

docker kill --signal=SIGHUP mysquidcontainername works on 5.1 version:

2021/09/11 13:11:07 kid1| Reconfiguring Squid Cache (version 5.1)...
2021/09/11 13:11:07 kid1| Closing HTTP(S) port 0.0.0.0:3128
2021/09/11 13:11:07 kid1| Logfile: closing log stdio:/proc/self/fd/1
2021/09/11 13:11:07 kid1| Startup: Initializing Authentication Schemes ...
2021/09/11 13:11:07 kid1| Startup: Initialized Authentication Scheme 'basic'
2021/09/11 13:11:07 kid1| Startup: Initialized Authentication Scheme 'digest'
2021/09/11 13:11:07 kid1| Startup: Initialized Authentication Scheme 'negotiate'
2021/09/11 13:11:07 kid1| Startup: Initialized Authentication Scheme 'ntlm'
2021/09/11 13:11:07 kid1| Startup: Initialized Authentication.
2021/09/11 13:11:07 kid1| aclIpParseIpData: IPv6 has not been enabled.
2021/09/11 13:11:07 kid1| aclIpParseIpData: IPv6 has not been enabled.
2021/09/11 13:11:07 kid1| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2021/09/11 13:11:07 kid1| Processing Configuration File: /etc/squid/conf.d/placeholder.conf (depth 1)
2021/09/11 13:11:07 kid1| aclIpParseIpData: IPv6 has not been enabled.
2021/09/11 13:11:07 kid1| aclIpParseIpData: IPv6 has not been enabled.
2021/09/11 13:11:07 kid1| Processing Configuration File: /etc/squid/conf.d.tail/squid-log.conf (depth 1)

@39ff
Copy link
Author

39ff commented Sep 11, 2021

It shows up in the log, but it doesn't seem to be reflected after changing the config.

@b4tman
Copy link
Owner

b4tman commented Sep 11, 2021

sameersbn/docker-squid#48

Docker can not detect the mounted file changes unless you mount the directory

Try mount volume only as directory

@39ff
Copy link
Author

39ff commented Sep 11, 2021

Thank you.
It worked fine.

@39ff 39ff closed this as completed Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants