View previous topic :: View next topic |
Author |
Message |
mathfeel l33t

Joined: 03 Aug 2004 Posts: 700
|
Posted: Sat Nov 04, 2006 1:16 pm Post subject: loading kernel module by service? |
|
|
I have certain service (tuncfg) that requires the kernel modules TUN to work. RIght now, I included a line tun in /etc/modules.autoload.d/kernel-2.6 to have the module load before the service. Is it possible in general to specify the module required by certain service and have it load the module when one starts the service? _________________ -----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche |
|
Back to top |
|
 |
phajdan.jr Retired Dev


Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Sat Nov 04, 2006 4:03 pm Post subject: |
|
|
modprobe module_name in the service start script, rmmod module_name in the service shutdown script. |
|
Back to top |
|
 |
|