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 11:14:02 +0100 |
commit | d18c937918ec3553cb98743088a37ff080af2491 (patch) | |
tree | 166e48aaaebbaa412ade546616c561f3d6cf593f /meta/recipes-extended/mdadm | |
parent | 116e876ffdb32d107271bb35e15a5ad951f64f65 (diff) | |
download | openembedded-core-contrib-d18c937918ec3553cb98743088a37ff080af2491.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.
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 Type=forking PIDFile=/var/run/mdadm/mdadm.pid EnvironmentFile=-/etc/sysconfig/mdmonitor -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 [Install] WantedBy=multi-user.target |