diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-06-24 16:08:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-27 12:20:36 +0100 |
commit | 98373868d20090224e9ba9d628e6e3bc4a7f20a8 (patch) | |
tree | e1efe524b956ea1ecf93c19141f2aef93cc50478 /meta/recipes-extended/mdadm | |
parent | 930a00cd2027bb190bb25d31daad5f4fbd5080a4 (diff) | |
download | poky-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.service | 3 |
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 | |||
13 | Type=forking | 13 | Type=forking |
14 | PIDFile=/var/run/mdadm/mdadm.pid | 14 | PIDFile=/var/run/mdadm/mdadm.pid |
15 | EnvironmentFile=-/etc/sysconfig/mdmonitor | 15 | EnvironmentFile=-/etc/sysconfig/mdmonitor |
16 | ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid | 16 | ExecStartPre=mkdir -p /var/run/mdadm |
17 | ExecStart=/sbin/mdadm --monitor -y --scan -f --pid-file=/var/run/mdadm/mdadm.pid | ||
17 | 18 | ||
18 | [Install] | 19 | [Install] |
19 | WantedBy=multi-user.target | 20 | WantedBy=multi-user.target |