[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/sbin/insmod_ksymoops_clean - What does it do? ; was Samba causes printer to freeze after long period of inactivity



What does insmod_ksymoops_clean do? It looks like this:

firewall:# cat /sbin/insmod_ksymoops_clean 
#!/bin/sh
# Delete saved ksyms and modules not accessed in 2 days
if [ -d /var/log/ksymoops -a -r /proc/ksyms ]
then
	set -e
	# Make sure there is always at least one version
	d=`date +%Y%m%d%H%M%S`
	cp -a /proc/ksyms /var/log/ksymoops/${d}.ksyms
	cp -a /proc/modules /var/log/ksymoops/${d}.modules
	find /var/log/ksymoops -type f -atime +2 -exec rm {} \;
fi

>From all I can tell, it simply makes a snapshot of the modules and
symbols that are active.

Does it purge not-recently-used modules from the kernel?

Elizabeth





Reply to: