]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/ldconfig.service
meson: stop creating enablement symlinks in /etc during installation
[thirdparty/systemd.git] / units / ldconfig.service
index 43c145b7266e7d330956fb5a8445f3d3ec16b336..3c3cbf5607e92c8158835dde50e867861be5c533 100644 (file)
@@ -1,3 +1,5 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
 #  This file is part of systemd.
 #
 #  systemd is free software; you can redistribute it and/or modify it
@@ -10,9 +12,10 @@ Description=Rebuild Dynamic Linker Cache
 Documentation=man:ldconfig(8)
 DefaultDependencies=no
 Conflicts=shutdown.target
-After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
+After=local-fs.target
 Before=sysinit.target shutdown.target systemd-update-done.service
-ConditionNeedsUpdate=/etc
+ConditionNeedsUpdate=|/etc
+ConditionFileNotEmpty=|!/etc/ld.so.cache
 
 [Service]
 Type=oneshot