加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-mdadm-mdcheck_start.service-mdcheck_continue.service.patch 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
From c68df6f3ed2ab5de2148577e69cd5d58745985b3 Mon Sep 17 00:00:00 2001
From: miaoguanqin <miaoguanqin@huawei.com>
Date: Sat, 3 Dec 2022 10:36:55 +0800
Subject: [PATCH] mdcheck_start.service and mdcheck_continue.service set the
path of Execstart to /usr/share/mdadm/mdcheck, But mdcheck was not exist in
this path. When we launch service, It would execute error. We change the path
of ExecStart to /usr/sbin/check, then service would br launched correctly.
Signed-off-by: miaoguanqin <miaoguanqin@huawei.com>
---
systemd/mdcheck_continue.service | 2 +-
systemd/mdcheck_start.service | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/systemd/mdcheck_continue.service b/systemd/mdcheck_continue.service
index 854317f..935004b 100644
--- a/systemd/mdcheck_continue.service
+++ b/systemd/mdcheck_continue.service
@@ -14,4 +14,4 @@ Type=oneshot
Environment="MDADM_CHECK_DURATION=6 hours"
EnvironmentFile=-/run/sysconfig/mdadm
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
-ExecStart=/usr/share/mdadm/mdcheck --continue --duration ${MDADM_CHECK_DURATION}
+ExecStart=BINDIR/mdcheck --continue --duration ${MDADM_CHECK_DURATION}
diff --git a/systemd/mdcheck_start.service b/systemd/mdcheck_start.service
index 3bb3d13..58d84c6 100644
--- a/systemd/mdcheck_start.service
+++ b/systemd/mdcheck_start.service
@@ -14,4 +14,4 @@ Type=oneshot
Environment="MDADM_CHECK_DURATION=6 hours"
EnvironmentFile=-/run/sysconfig/mdadm
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
-ExecStart=/usr/share/mdadm/mdcheck --duration ${MDADM_CHECK_DURATION}
+ExecStart=BINDIR/mdcheck --duration ${MDADM_CHECK_DURATION}
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化