[systemd-devel] Loading Kernel Modules

Kay Sievers kay at vrfy.org
Mon Mar 19 06:56:33 PDT 2012


On Mon, Mar 19, 2012 at 14:42, Pawel Pastuszak <pawelpastuszak at gmail.com> wrote:
> I am new to to systemd, i trying to learn how to the configuration files
> using system vs the old method of sysv with init.d script so i have couple
> scripts that i uses currently for loading couple custom drivers and i like
> to cover them into an systemd so that i can load them and unload them using
> the systemctl stop/start commands sets.
>
> Can anybody show me a good example of how to do this?

We never support module unloading. It's almost always wrong to do that.

Module unloading is a 'development tool', or to *locally* work around
broken drivers, we will not support that with any tools and advertise
that, or make it easy to do so. It steals the focus from the kernel
bugs, which is just bad. Module unloading is usually only fixing the
symptoms, not the cause, which is an approach systemd refuses to
support.

If you need to unload modules, file bugs against the kernel please, so
that this gets fixed. Modules need to be able to stay loaded all the
time; just the same way they could be compiled-in in the first place.

Systemd can force-load modules with 'man modules-load.d'.

Thanks,
Kay


More information about the systemd-devel mailing list