X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=units%2Fsystemd-sysctl.service.in;h=d38f026142c373475b96c3b63ef16f761e2fa68e;hb=1d7f3f5cc80434f363e2f1e8284324d317c3faf4;hp=692fa3b8898e5fa52c38600df69ee79e44719a33;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8;p=elogind.git diff --git a/units/systemd-sysctl.service.in b/units/systemd-sysctl.service.in index 692fa3b88..d38f02614 100644 --- a/units/systemd-sysctl.service.in +++ b/units/systemd-sysctl.service.in @@ -11,6 +11,7 @@ DefaultDependencies=no Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service Before=sysinit.target shutdown.target +ConditionPathIsReadWrite=/proc/sys/ ConditionPathExists=|/etc/sysctl.conf ConditionDirectoryNotEmpty=|/lib/sysctl.d ConditionDirectoryNotEmpty=|/usr/lib/sysctl.d