From 8ce2d5ca34c331f40340bf64dd8948bf4df0cfef Mon Sep 17 00:00:00 2001 From: hy Date: Mon, 9 Mar 2020 14:43:39 +0800 Subject: [PATCH] Add the wants to systemd-tmpfiles-setup.service in mdmonitor.service add a configuration file in /usr/lib/tmpfiles.d for create the /run/mdadm directory during the boot process. And the /run/mdadm is created by systemd-tmpfiles-setup.service. So mdmonitor.service needs to start after it. --- mdmonitor.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdmonitor.service b/mdmonitor.service index 1f6deb9..2a8988c 100644 --- a/mdmonitor.service +++ b/mdmonitor.service @@ -8,7 +8,8 @@ [Unit] Description=MD array monitor DefaultDependencies=no -ConditionPathExists=/run +Wants=systemd-tmpfiles-setup.service +After=systemd-tmpfiles-setup.service [Service] Type=forking -- Gitee