chiark / gitweb /
units: run sysctl only if /etc/sysctl.conf exists
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 20:12:05 +0000 (22:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 20:12:05 +0000 (22:12 +0200)
units/sysctl.service

index afde580..ba5626a 100644 (file)
@@ -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