diff options
Diffstat (limited to 'units')
-rw-r--r-- | units/.gitignore | 1 | ||||
-rw-r--r-- | units/systemd-sysctl.service.in (renamed from units/sysctl.service) | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/units/.gitignore b/units/.gitignore index 419838b677..008446d4bb 100644 --- a/units/.gitignore +++ b/units/.gitignore @@ -1,3 +1,4 @@ +systemd-sysctl.service systemd-ask-password-console.service rescue.service systemd-ask-password-plymouth.service diff --git a/units/sysctl.service b/units/systemd-sysctl.service.in index ba5626a3a8..af3ba88e29 100644 --- a/units/sysctl.service +++ b/units/systemd-sysctl.service.in @@ -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 |