[Pkg-puppet-devel] Bug#709417: Bug#709417: mcollective: MCollective daemon inherits dpkg environment when restarted in postinst

Russ Allbery rra at debian.org
Thu May 23 08:02:48 UTC 2013


Zdenek Crha <zdenek.crha at gmail.com> writes:

> Package: mcollective
> Version: 2.0.0+dfsg-2
> Severity: normal

> When mcollective daemon is configured to start automatically, it is
> restarted on each package upgrade or reconfiguration. During this
> restart, it inherits dpkg and debconf internal variables in environment:

I'm inclined to think this is really a bug in invoke-rc.d and it should
strip the environment (at least by default).  Stripping the environment in
the init script means that the system administrator cannot set an
environment variable intentionally when starting the service.  This
admittedly isn't something a lot of people would need to do, but it would
be surprising if it didn't work for this init script while it did for all
other init scripts.

Note that the service command to invoke init.d scripts has stripped the
environment for some time.

This problem affects xinetd as well, or at least has in my past experience
(particularly when xinetd is restarted by Puppet during a Puppet agent
installation).

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>



More information about the Pkg-puppet-devel mailing list