Red Hat Bugzilla – Bug 55764
modutils 2.4.6-4 won't unload modules (missing kmod cron job)
Last modified: 2014-03-16 22:24:14 EDT
Description of Problem:
Redhat 7.2 does not include /etc/cron.d/kmod in the modutils package, which means that unused (autoclean) kernel modules will not be removed from memory!
Version-Release number of component:
modutils 2.4.6-4 as shipped with Redhat 7.2
Default upgrade from 7.1
Unused modules never unload!
Unused kernel modules should unload after 2 passes of the cron task every 10 minutes.
Solution! Rebuild modutils package, adding this to the SPEC file:
[it's all in one line but got word-wrapped in Web form]
echo "*/10 * * * * root /sbin/rmmod -as" >$RPM_BUILD_ROOT/etc/cron.d/kmod
And add /etc/cron.d/kmod to the list of files.
It was removed intentionally, due to user requests.
*** This bug has been marked as a duplicate of 16608 ***