chiark / gitweb /
sysctl: implement native sysctl tool to support Debian-style /etc/sysctl.d
[elogind.git] / units / systemd-sysctl.service.in
similarity index 87%
rename from units/sysctl.service
rename to units/systemd-sysctl.service.in
index ba5626a3a86fb59d425cefe7a6469ec33c84252e..af3ba88e2961762eed8fca2fd4f288f5af4eacdf 100644 (file)
@@ -12,9 +12,9 @@ Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service
 Before=basic.target shutdown.target
 ConditionPathExists=/etc/sysctl.conf
+ConditionDirectoryNotEmpty=/etc/sysctl.d
 
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=/sbin/sysctl -e -q -p /etc/sysctl.conf
-StandardOutput=syslog
+ExecStart=@rootlibexecdir@/systemd-sysctl