[oe-commits] [openembedded-core] 07/33: mdadm: fix systemd service start up failure

git at git.openembedded.org git at git.openembedded.org
Thu Jun 27 11:32:21 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit d18c937918ec3553cb98743088a37ff080af2491
Author: Changqing Li <changqing.li at windriver.com>
AuthorDate: Mon Jun 24 16:08:40 2019 +0800

    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.
    Signed-off-by: Changqing Li <changqing.li at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 meta/recipes-extended/mdadm/files/mdmonitor.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/mdadm/files/mdmonitor.service b/meta/recipes-extended/mdadm/files/mdmonitor.service
index bd243b4..a81578e 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
-ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid
+ExecStartPre=mkdir -p /var/run/mdadm
+ExecStart=/sbin/mdadm --monitor -y --scan -f --pid-file=/var/run/mdadm/mdadm.pid

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list