units: fix condition for systemd-journal-catalog-update.service (#4990)
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Dec 2016 09:38:52 +0000 (10:38 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 29 Dec 2016 09:38:52 +0000 (10:38 +0100)
The service is supposed to regenerate the catalog index whenever /usr is
updated, but /var is not. Hence the ConditionNeedsUpdate= line should
actually reference /var, as that's where the index file is located.

units/systemd-journal-catalog-update.service.in

index 6370dd4..276f052 100644 (file)
@@ -12,7 +12,7 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=local-fs.target
 Before=sysinit.target shutdown.target systemd-update-done.service
-ConditionNeedsUpdate=/etc
+ConditionNeedsUpdate=/var
 
 [Service]
 Type=oneshot