summaryrefslogtreecommitdiffstats
path: root/units/ldconfig.service
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-14 13:39:10 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-15 14:59:11 +0200
commit9810e419425263bde86787bc21251f1ad3c35628 (patch)
tree1ba29f7dd8a3e3014a992677688f995400408c7b /units/ldconfig.service
parentTODO: various things about partitioning (diff)
downloadsystemd-9810e419425263bde86787bc21251f1ad3c35628.tar.xz
systemd-9810e419425263bde86787bc21251f1ad3c35628.zip
units: reorder/split unit dependency blocks
The block is reordered and split to have: 1. description + documentation 2. (optionally) conditions 3. all the dependencies I think it's easier to read the units this way. Also, the Conflicts+Before is seperated out to separate lines. The ordering dependency is "fake", because it could just as well be After=, we are adding it to force ordering wrt. shutdown.target, and it plays a different role than the other Before=, which are about a real ordering on boot.
Diffstat (limited to 'units/ldconfig.service')
-rw-r--r--units/ldconfig.service11
1 files changed, 7 insertions, 4 deletions
diff --git a/units/ldconfig.service b/units/ldconfig.service
index 33824d4d4f..cb887ae865 100644
--- a/units/ldconfig.service
+++ b/units/ldconfig.service
@@ -10,13 +10,16 @@
[Unit]
Description=Rebuild Dynamic Linker Cache
Documentation=man:ldconfig(8)
-DefaultDependencies=no
-Conflicts=shutdown.target
-After=local-fs.target
-Before=sysinit.target shutdown.target systemd-update-done.service
+
ConditionNeedsUpdate=|/etc
ConditionFileNotEmpty=|!/etc/ld.so.cache
+DefaultDependencies=no
+After=local-fs.target
+Before=sysinit.target systemd-update-done.service
+Conflicts=shutdown.target
+Before=shutdown.target
+
[Service]
Type=oneshot
RemainAfterExit=yes