summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-28 22:12:05 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-28 22:12:05 +0200
commitc858849d45ff94d66c79a414b6a2ef9db1fe1979 (patch)
tree7883796b85f006c0dcbb2bb099c8cb26ace3a673 /units
parent9feeba4bbb768a2564520b5d3e238c44fb3f6c7b (diff)
units: run sysctl only if /etc/sysctl.conf exists
Diffstat (limited to 'units')
-rw-r--r--units/sysctl.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/sysctl.service b/units/sysctl.service
index afde58055b..ba5626a3a8 100644
--- a/units/sysctl.service
+++ b/units/sysctl.service
@@ -11,6 +11,7 @@ DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
Before=basic.target shutdown.target
+ConditionPathExists=/etc/sysctl.conf
[Service]
Type=oneshot