rmmod and cron issue?
I have a problem that I do not know how to solve and it may involve cron daemon.
Problem: I have a module that cannot be unloaded with rmmod after loading it using a cronjob entry.
If I run the script file manually, it works fine.
- the module (snapapi) unloaded when the script ends.
If I put the script into a cronjob, the module will be listed as "[deleted]" when view by lsmod. Attempt to remove it will failed and I cannot load the module again (msg something like: module name already loaded)
Manual run: It will load and unloaded correctly.
insmod snapapi
rmmod snapapi
I also tried sleep 10 when I finished the job before trying to remove the module on my script. It fails only when it was run as cronjob. Manual running the script works fine.
modinfo snapapi
filename: /lib/modules/2.4.26/kernel/drivers/block/snapapi.o
description: <none>
author: <none>
license: "Proprietary"
Any suggestions will be greatly appreciated.
|