[arch-projects] [PATCH] initscripts: load of sysctl files at startup

Earendil earendil_fr at inpactien.com
Sun Aug 28 18:29:34 EDT 2011


Le dimanche 28 août 2011 à 17:51:38 (-0400), Dave Reisner a écrit :
> On Sun, Aug 28, 2011 at 11:44:17PM +0200, Earendil wrote:
> > Hi 
> > 
> > Just a little patch to correct the load of the sysctl configuration file
> > at startup.
> 
> And what needs to be corrected? Ignoring the additional directory you're
> pulling from), your patch exhibits no change in behavior for loading the
> default /etc/sysctl.conf.
>

You're right : I have made tests with my configuration : now, everything
is OK.
I think I had made an errors somewhere but where…

> > I have also added the capability to stip th sysctl.conf files in many
> > files in the sysctl.d directory.
> > This idea was inspired by Debian architecture.
> > 
> 
> Sure, systemd uses this as well. Do we have any cases where distributing
> a sysctl file with a package is needed? I'm really not sure this is
> something that's wanted/needed in Arch.
> 
> d
> 

It was just an idea : I like the ability to not disturbed the main
configuration files with my own tests. And the presence of the directory
is not mandatory, so we don’t need to add it to the package.
But I’m agree : It's not needed.

Ea

> > 
> > -- 
> > keys.gnupg.net: 0xEBCBE59D
> > 
> > "J'ai toujours rêvé d'un ordinateur qui soit aussi facile à utiliser 
> >  qu'un téléphone. Mon rêve s'est réalisé : je ne sais plus comment 
> >  utiliser mon téléphone."
> > 
> >  Bjarne Stroustrup
> > 
> > ------------ PATCH -----------------------
> > --- rc.multi.orig   2011-07-28 14:21:07.000000000 +0200
> > +++ rc.multi    2011-08-12 23:48:23.914340475 +0200
> > @@ -9,7 +9,10 @@
> >  run_hook multi_start
> > 
> >   # Load sysctl variables if sysctl.conf is present
> >   -[[ -r /etc/sysctl.conf ]] && sysctl -q -p &>/dev/null
> >   +for file in /etc/sysctl.conf /etc/sysctl.d/*.conf ; do
> >   +    [[ -r "${file}" ]] && sysctl -q -p "${file}" &> /dev/null
> >   +done
> >   +stat_done
> > 
> >    # Start daemons
> >     for daemon in "${DAEMONS[@]}"; do
> > 
> > ------------------------------------------
> 
> > --- rc.multi.orig	2011-07-28 14:21:07.000000000 +0200
> > +++ rc.multi	2011-08-12 23:48:23.914340475 +0200
> > @@ -9,7 +9,10 @@
> >  run_hook multi_start
> >  
> >  # Load sysctl variables if sysctl.conf is present
> > -[[ -r /etc/sysctl.conf ]] && sysctl -q -p &>/dev/null
> > +for file in /etc/sysctl.conf /etc/sysctl.d/*.conf ; do
> > +    [[ -r "${file}" ]] && sysctl -q -p "${file}" &> /dev/null
> > +done
> > +stat_done
> >  
> >  # Start daemons
> >  for daemon in "${DAEMONS[@]}"; do
> 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110829/1bee04ac/attachment.asc>


More information about the arch-projects mailing list