Hi Craig,

On Sun, 04 Jun 2006, Luk Claes wrote:
> Automatically configuring etc/sysctl.conf is not policy compliant for
> the moment as one needs to edit conffiles in the process.
> 
> A solution might be to create the file in the maintainerscripts so it's
> no conffile...

Another simpler (and nicer) solution is simply to change
/etc/init.d/procps so that it uses the content of /etc/sysctl.conf but
also the content of /etc/sysctl.d/*.conf.

I would like to see this implemented because I have the case with another
custom Debian derivative where I'd like to change some kernel
parameters and it would be nice to be able to do that by dropping a file
in a standardized place instead of adding yet another startup script just
for that.

               if [ ! -r /etc/sysctl.conf ]
               then
                       exit 0
               fi
               log_action_begin_msg "Setting kernel variables"
               sysctl -q -p
               log_action_end_msg $?

could become:

for file in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
        if [ -r $file ]; then
                log_action_begin_msg "Setting kernel variables ($file)"
                sysctl -q -p $file
                log_action_end_msg $?
        fi
done

I left /etc/sysctl.conf at the end so it overrides any other file.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/


Reply via email to