Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2020 08:59:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237999] rc.d/ntpd cannot fetch NTPD leap-seconds file via a proxy
Message-ID:  <bug-237999-227-OTIquxtYsP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237999-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237999-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237999

Peter Pramberger <peter@pramberger.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter@pramberger.at

--- Comment #2 from Peter Pramberger <peter@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237999-227-OTIquxtYsP>