summaryrefslogtreecommitdiffstats
path: root/units/systemd-sysctl.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-12 02:41:02 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-12 12:58:19 +0200
commitf2a46f8da51aeab1a34dd250e8ac48f2465bf095 (patch)
tree0c0ec89d1cb8886a5ecadc85d3a5ad883a7738be /units/systemd-sysctl.service.in
parentunit: introduce ConditionPathIsReadWrite (diff)
downloadsystemd-f2a46f8da51aeab1a34dd250e8ac48f2465bf095.tar.xz
systemd-f2a46f8da51aeab1a34dd250e8ac48f2465bf095.zip
units: run sysctl stuff only when /proc/sys is actually writable, to quieten container boots a little
Diffstat (limited to 'units/systemd-sysctl.service.in')
-rw-r--r--units/systemd-sysctl.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-sysctl.service.in b/units/systemd-sysctl.service.in
index 692fa3b889..d38f026142 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