Date: Fri, 5 Jun 2020 17:36:49 +0200 From: Mikhail Morfikov <mmorfikov@...il.com> To: lkrg-users@...ts.openwall.com Subject: The lkrg.service for systemd You provide the lkrg.service file for systemd. It basically loads/unloads the LKRG module and currently has the following boot dependencies: After=basic.target Before=network.target There's another service called systemd-modules-load.service which takes care of loading any modules defined in /etc/modules or /etc/modules-load.d/ . It has the following deps: Before=sysinit.target shutdown.target The difference here is *basic.target* vs. *sysinit.target* . According to sysinit.target is a way earlier in the boot chain than basic.target. In the case of my system, systemd-modules-load.service is started almost at the beginning of the boot phase, and the network.target (which is in Before= in lkrg.service) is almost at the end of the boot process. Wouldn't be better to use the same deps as in systemd-modules-load.service ? What about other inits? Not all of the available init systems use this .service file. Maybe is it better to provide a file with the module name and place it under /etc/modules-load.d/ , so all the inits be supported? What do you think? : https://www.freedesktop.org/software/systemd/man/bootup.html Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.