diff --git a/mdadm.spec b/mdadm.spec index a56d1f2818c4d231cf6893bf3abab4af15b6dd63..50cc04c56fcb0efeabe691abed439594f5e38e23 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 4.2 -Release: 16 +Release: 17 Summary: The software RAID arrays user manage tools License: GPLv2+ URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ @@ -96,6 +96,9 @@ install -d -m 710 %{buildroot}/var/run/mdadm/ %{_mandir}/man*/* %changelog +* Wed Jul 17 2024 wuguanghao - 4.2-17 +- mdmonitor.service: add conditional judgment to avoid service startup failed + * Mon Jun 24 2024 wuguanghao - 4.2-16 - Manage: fix check after dereference issue 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