mdmonitor.service: add conditional judgment to avoid service startup failed

(cherry picked from commit 849ed9be1d793401883b8856c314818b65f7a53c)
This commit is contained in:
wguanghao 2024-07-17 15:27:59 +08:00 committed by openeuler-sync-bot
parent 62db0474e1
commit ab10bf8132
2 changed files with 5 additions and 1 deletions

View File

@ -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 <wuguanghao3@huawei.com> - 4.2-17
- mdmonitor.service: add conditional judgment to avoid service startup failed
* Mon Jun 24 2024 wuguanghao <wuguanghao3@huawei.com> - 4.2-16
- Manage: fix check after dereference issue

View File

@ -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