On Fri, Feb 25, 2011 at 9:55 AM, Peter Palfrader <wea...@debian.org> wrote: > We should probably start a campaign in Debian to have all init scripts > sanitize the environment of daemons they start. > > I usually run initscripts using "env -i /etc/init.d/$foo start" to > achieve exactly that, but ideally the init script itself would do that. > > Maybe start-stop-daemon should have an option to delete all but a > specified set of environment variables, maybe even enabled by default.
Why start-stop-daemon? I'd create /lib/deb/init-functions and either supply a function to sanitize the environment or do this automatically. -- Olaf -- 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/AANLkTin1kt2EyMU2n0ume+oJnf+TFRnd=pdh+z4ex...@mail.gmail.com