summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Ni <xni@redhat.com>2023-04-07 08:45:28 +0800
committerJes Sorensen <jes@trained-monkey.org>2023-04-10 11:51:32 -0400
commit76c224c6cfc8ff154bd041d30b9551faecd593c1 (patch)
treedd0bad8d5dacf6f7ad31039aae5334827c558814
parentf8d2c4286a92b7acb7872271a401ad1efe336096 (diff)
downloadmdadm-76c224c6cfc8ff154bd041d30b9551faecd593c1.tar.gz
Remove the config files in mdcheck_start|continue service
We set MDADM_CHECK_DURATION in the mdcheck_start|continue.service files. And mdcheck doesn't use any configs from the config file. So we can remove the dependencies. Signed-off-by: Xiao Ni <xni@redhat.com> Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
-rw-r--r--systemd/mdcheck_continue.service2
-rw-r--r--systemd/mdcheck_start.service2
2 files changed, 0 insertions, 4 deletions
diff --git a/systemd/mdcheck_continue.service b/systemd/mdcheck_continue.service
index f532490..70892a1 100644
--- a/systemd/mdcheck_continue.service
+++ b/systemd/mdcheck_continue.service
@@ -13,6 +13,4 @@ Documentation=man:mdadm(8)
[Service]
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}
diff --git a/systemd/mdcheck_start.service b/systemd/mdcheck_start.service
index 703a658..fc4fc43 100644
--- a/systemd/mdcheck_start.service
+++ b/systemd/mdcheck_start.service
@@ -13,6 +13,4 @@ Documentation=man:mdadm(8)
[Service]
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}