diff --git a/mdadm.spec b/mdadm.spec index 6ff70966eadf35724d14d868fa66a56ed6aaac4c..ada513b60946526c5dabc91bc1151f074e070789 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 4.2 -Release: 15 +Release: 16 Summary: The software RAID arrays user manage tools License: GPLv2+ URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ @@ -101,6 +101,9 @@ install -d -m 710 %{buildroot}/var/run/mdadm/ %{_mandir}/man*/* %changelog +* Fri Oct 17 2025 wuguanghao - 4.2-16 +- mdmonitor.service: add conditional judgment to avoid service startup failed + * Tue Mar 18 2025 wuguanghao - 4.2-15 - Super1 clear extra flags when initializing metadata diff --git a/mdmonitor.service b/mdmonitor.service index b45d86fe41e6277f6474b5f82aca9a3141c6dc97..8ad3a11ff79b2fa480616788a35411e5f77dc2d7 100644 --- a/mdmonitor.service +++ b/mdmonitor.service @@ -10,6 +10,7 @@ Description=MD array monitor DefaultDependencies=no Wants=systemd-tmpfiles-setup.service After=systemd-tmpfiles-setup.service +ConditionPathExistsGlob=/dev/md* [Service] Type=forking