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

Peter Pramberger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Peter Pramberger <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to