mdmonitor.service: add conditional judgment to avoid service startup failed
(cherry picked from commit 849ed9be1d793401883b8856c314818b65f7a53c)
This commit is contained in:
parent
62db0474e1
commit
ab10bf8132
@ -1,6 +1,6 @@
|
|||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 4.2
|
Version: 4.2
|
||||||
Release: 16
|
Release: 17
|
||||||
Summary: The software RAID arrays user manage tools
|
Summary: The software RAID arrays user manage tools
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
||||||
@ -96,6 +96,9 @@ install -d -m 710 %{buildroot}/var/run/mdadm/
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jun 24 2024 wuguanghao <wuguanghao3@huawei.com> - 4.2-16
|
||||||
- Manage: fix check after dereference issue
|
- Manage: fix check after dereference issue
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ Description=MD array monitor
|
|||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Wants=systemd-tmpfiles-setup.service
|
Wants=systemd-tmpfiles-setup.service
|
||||||
After=systemd-tmpfiles-setup.service
|
After=systemd-tmpfiles-setup.service
|
||||||
|
ConditionPathExistsGlob=/dev/md*
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user