From: Xiao Ni Date: Fri, 7 Apr 2023 00:45:28 +0000 (+0800) Subject: Remove the config files in mdcheck_start|continue service X-Git-Tag: mdadm-4.3~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c224c6cfc8ff154bd041d30b9551faecd593c1;p=thirdparty%2Fmdadm.git 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 Signed-off-by: Jes Sorensen --- diff --git a/systemd/mdcheck_continue.service b/systemd/mdcheck_continue.service index f5324905..70892a1f 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 703a6583..fc4fc438 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}