Skip to contentSkip to conversation

Remove the config files in mdcheck_start|continue service

PATCH Applied Xiao Ni 2 participants 2 messages Apr 7, 2023 – Apr 10, 2023 MD RAID

lore
Share & tools
lore

Xiao Ni

author
#0 lore raw

PATCH 1/1 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.

---
 systemd/mdcheck_continue.service | 2 --
 systemd/mdcheck_start.service    | 2 --
 2 files changed, 4 deletions(-)
systemd/mdcheck_continue.service +0 -2
index 854317f11700..f576e0167f3c 100644
@@ -12,6 +12,4 @@ ConditionPathExistsGlob = /var/lib/mdcheck/MD_UUID_*
 [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}
systemd/mdcheck_start.service +0 -2
index 3bb3d130801f..f98e5c6f52d7 100644
@@ -12,6 +12,4 @@ Wants=mdcheck_continue.timer
 [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}
Signature · 1 line
2.32.0 (Apple Git-132)
Applied
#1 lore raw
Quoted 9 lines · Xiao Ni

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.

---
 systemd/mdcheck_continue.service | 2 --
 systemd/mdcheck_start.service    | 2 --
 2 files changed, 4 deletions(-)

Applied!

Thanks,
Jes