[Bug 237999] rc.d/ntpd cannot fetch NTPD leap-seconds file via a proxy
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 16 08:59:50 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237999
Peter Pramberger <peter at pramberger.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter at pramberger.at
--- Comment #2 from Peter Pramberger <peter at pramberger.at> ---
The workaround mentioned in
https://forums.freebsd.org/threads/set-proxy-server-for-rc-d-periodic-scripts.69664/post-418020
was a good starting point, but unfortunately I was not able to get 'ntpd_env'
working.
There is however 'ntpd_env_file' (at least in 12) to source external files,
which works perfectly:
/etc/rc.conf:
ntpd_env_file="/etc/profile.d/proxy.sh"
/etc/profile.d/proxy.sh:
http_proxy="http://my.proxy:8080"
export http_proxy
Just make sure that the referenced file is readable, and usable by sh(1).
Would prefer a more generic way though, instead of changing the environment for
every service needing external access.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list