/etc/cron.d/kmod

Jakub Bogusz qboosh at pld-linux.org
Fri Sep 17 01:02:48 CEST 2004


On Fri, Sep 17, 2004 at 12:43:15AM +0200, Jakub Bogusz wrote:
> On Fri, Sep 17, 2004 at 12:34:11AM +0200, Arkadiusz Miskiewicz wrote:
> > On Thursday 16 of September 2004 21:50, Grzegorz Konopko wrote:
> > > Dnia czwartek, 16 września 2004 00:28, Grzegorz Konopko napisał:
> > > > > $ cat /etc/cron.d/kmod
> > > > > # rmmod -a is a two-hand sweep module cleaner
> > > > > */10 * * * *    root    /sbin/rmmod -as
> > > > >
> > > > >
> > > > > there's no point in it
> > > >
> > > > I forgot, if change /sbin/rmmod on /sbin/rmmod.modutils and have 2.6 and
> > > > 2.4 on one machine and boot is 2.6 we have got 6 mails on hour.
> > >
> > > no-one commented thread so I changed it on rmmod.modutils and added test on
> > > kernel 2.4.
> > >
> > > STBR?
> > No, now it will be broken when having both - 2.4 and 2.6 - kernels. 
> > 
> > Put  /sbin/rmmod -as into module-init-tools and 
> > [ ! -x /sbin/rmmod ] && /sbin/rmmod.modutils -as into modutils.
> 
> rmmod from m-i-t doesn't support auto-unloading (-a).

...and auto-unloading with kernel 2.6 isn't good idea.
Think about ethernet devices (which modules have usage count 0).
Also unloading of some modules can destabilize kernel (early 2.6.x
used to crash on rmmod very often).


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-en mailing list