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


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110225203410.gm13...@rzlab.ucr.edu

Reply via email to