summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2019-06-24 16:08:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-27 12:20:36 +0100
commit98373868d20090224e9ba9d628e6e3bc4a7f20a8 (patch)
treee1efe524b956ea1ecf93c19141f2aef93cc50478 /meta/recipes-extended/mdadm
parent930a00cd2027bb190bb25d31daad5f4fbd5080a4 (diff)
downloadpoky-98373868d20090224e9ba9d628e6e3bc4a7f20a8.tar.gz
mdadm: fix systemd service start up failure
1. mdadm: No mail address or alert command - not monitoring fixed by use option -y to cause all events to be reported through 'syslog'. 2. cannot create pid file: No such file or directory fix by create dir before starting. (From OE-Core rev: d18c937918ec3553cb98743088a37ff080af2491) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm')
-rw-r--r--meta/recipes-extended/mdadm/files/mdmonitor.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/mdadm/files/mdmonitor.service b/meta/recipes-extended/mdadm/files/mdmonitor.service
index bd243b4498..a81578ead6 100644
--- a/meta/recipes-extended/mdadm/files/mdmonitor.service
+++ b/meta/recipes-extended/mdadm/files/mdmonitor.service
@@ -13,7 +13,8 @@ ConditionPathExists=/etc/mdadm.conf
13Type=forking 13Type=forking
14PIDFile=/var/run/mdadm/mdadm.pid 14PIDFile=/var/run/mdadm/mdadm.pid
15EnvironmentFile=-/etc/sysconfig/mdmonitor 15EnvironmentFile=-/etc/sysconfig/mdmonitor
16ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid 16ExecStartPre=mkdir -p /var/run/mdadm
17ExecStart=/sbin/mdadm --monitor -y --scan -f --pid-file=/var/run/mdadm/mdadm.pid
17 18
18[Install] 19[Install]
19WantedBy=multi-user.target 20WantedBy=multi-user.target