[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#612752: Bind fails to start if $OPENSSL_CONF is set

On Fri, 25 Feb 2011, Don Armstrong wrote:
> On Fri, 25 Feb 2011, Peter Palfrader wrote:
> > Maybe start-stop-daemon should have an option to delete all but a
> > specified set of environment variables, maybe even enabled by
> > default.
> The problem is in cases where you actually want to pass environmental
> variables to the daemon from within the init script.
> Maybe some equivalent of
> unset $(export -p|awk -F= '{print $1}'|awk '{print $NF}')
> would work?

Just to clarify: you'd do this (or some less ugly awkish equivalent)
early on in the init script before sourcing /etc/default/foo to allow
setting up the environment there.

Don Armstrong

No amount of force can control a free man, a man whose mind is free
[...] You can't conquer a free man; the most you can do is kill him.
 -- Robert Heinlein _Revolt in 2010_ p54

http://www.donarmstrong.com              http://rzlab.ucr.edu

Reply to: