From: Lennart Poettering Date: Thu, 12 Apr 2012 00:41:02 +0000 (+0200) Subject: units: run sysctl stuff only when /proc/sys is actually writable, to quieten containe... X-Git-Tag: v183~380 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f2a46f8da51aeab1a34dd250e8ac48f2465bf095 units: run sysctl stuff only when /proc/sys is actually writable, to quieten container boots a little --- 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