]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: make quota services bind to corresponding mount units
authorMike Yuan <me@yhndnzj.com>
Sun, 10 Mar 2024 14:57:22 +0000 (22:57 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 10 Mar 2024 14:57:22 +0000 (22:57 +0800)
Follow-up for a628d933cc67cc8b183dc809ba1451aa5b2996e5

systemd-growfs@.service does the same.

units/quotaon@.service.in
units/systemd-quotacheck@.service.in

index 136060a9a1738d9c18c96ea9b459c5dc5cadf1e8..23f365ae2c9f9332c931c4584ec3e3ef08e2c23f 100644 (file)
@@ -14,9 +14,9 @@ Documentation=man:quotaon(8)
 ConditionPathExists={{QUOTAON}}
 ConditionPathExists=!/etc/initrd-release
 
-After=%i.mount
-After=systemd-quotacheck@%i.service
 DefaultDependencies=no
+BindsTo=%i.mount
+After=systemd-quotacheck@%i.service %i.mount
 Before=shutdown.target
 Conflicts=shutdown.target
 
index dddce2ee8320217a28397c5aca4ee80da31b3b41..f2b8db7abb8939e600b198f73cbbd29df69a4916 100644 (file)
@@ -15,6 +15,7 @@ ConditionPathExists={{QUOTACHECK}}
 ConditionPathExists=!/etc/initrd-release
 
 DefaultDependencies=no
+BindsTo=%i.mount
 After=%i.mount
 Before=shutdown.target
 Conflicts=shutdown.target