diff options
-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 |