!4 add ConditionPathExists in mdmonitor.service for resolving service failure during system startup
Merge pull request !4 from hy/master
This commit is contained in:
commit
2e6aff3057
@ -1,6 +1,6 @@
|
|||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 4.1
|
Version: 4.1
|
||||||
Release: rc2.0.7
|
Release: rc2.0.8
|
||||||
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/
|
||||||
@ -81,6 +81,12 @@ install -d -m 710 %{buildroot}/var/run/mdadm/
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 3 2020 hy <eulerstoragemt@huawei.com> - 4.1-rc2.0.8
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add ConditionPathExists in mdmonitor.service for resolving service failure during system startup
|
||||||
|
|
||||||
* Sun Jan 19 2020 hy <eulerstoragemt@huawei.com> - 4.1-rc2.0.7
|
* Sun Jan 19 2020 hy <eulerstoragemt@huawei.com> - 4.1-rc2.0.7
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -8,13 +8,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=MD array monitor
|
Description=MD array monitor
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
|
ConditionPathExists=/run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/mdadm/mdadm.pid
|
PIDFile=/run/mdadm/mdadm.pid
|
||||||
Environment= MDADM_MONITOR_ARGS="--scan --syslog"
|
Environment= MDADM_MONITOR_ARGS="--scan --syslog"
|
||||||
EnvironmentFile=-/etc/sysconfig/mdadm
|
EnvironmentFile=-/etc/sysconfig/mdadm
|
||||||
ExecStart=/sbin/mdadm --monitor $MDADM_MONITOR_ARGS -f --pid-file=/var/run/mdadm/mdadm.pid
|
ExecStart=/sbin/mdadm --monitor $MDADM_MONITOR_ARGS -f --pid-file=/run/mdadm/mdadm.pid
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user