[systemd-devel] [PATCH 01/11] Ensure that systemd-sysctl.service is applied after modules are loaded

Dr. Werner Fink werner at suse.de
Mon Jun 16 05:52:30 PDT 2014


On Fri, Jun 13, 2014 at 05:51:34PM +0200, Tom Gundersen wrote:
> On Fri, Jun 13, 2014 at 4:41 PM, Werner Fink <werner at suse.de> wrote:
> > From: Frederic Crozat <fcrozat at suse.com>
> 
> Hm, this would not help at all for modules loaded on-demand (which are
> most of them). What is the problem being solved here?

Indeed this does not help for the loaded on-demand modules as this requires
an other approach.  Nevertheless for the modules loaded by the service
systemd-modules-load.service it helps to load the the kernel parameters
afterwards as with many modules there will be *new* entiers below /proc/sys/

> > ---
> >  units/systemd-sysctl.service.in |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git units/systemd-sysctl.service.in units/systemd-sysctl.service.in
> > index 5baf22c..c4bc0da 100644
> > --- units/systemd-sysctl.service.in
> > +++ units/systemd-sysctl.service.in
> > @@ -10,7 +10,7 @@ Description=Apply Kernel Variables
> >  Documentation=man:systemd-sysctl.service(8) man:sysctl.d(5)
> >  DefaultDependencies=no
> >  Conflicts=shutdown.target
> > -After=systemd-readahead-collect.service systemd-readahead-replay.service
> > +After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-modules-load.service
> >  Before=sysinit.target shutdown.target
> >  ConditionPathIsReadWrite=/proc/sys/
> >  ConditionDirectoryNotEmpty=|/lib/sysctl.d
> > --
> > 1.7.9.2

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140616/8481d052/attachment.sig>


More information about the systemd-devel mailing list