]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove the config files in mdcheck_start|continue service
authorXiao Ni <xni@redhat.com>
Fri, 7 Apr 2023 00:45:28 +0000 (08:45 +0800)
committerJes Sorensen <jes@trained-monkey.org>
Mon, 10 Apr 2023 15:51:32 +0000 (11:51 -0400)
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>
systemd/mdcheck_continue.service
systemd/mdcheck_start.service

index f53249058b28250674368f199825b2b4aa9ad28d..70892a1f60182bad226d1092ece1ee0e2e6e4722 100644 (file)
@@ -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}
index 703a65832597dcd02f018d877a03438a34bb6a1f..fc4fc4388c6c7377395818837e99102b51f025f4 100644 (file)
@@ -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}