Skip to contentSkip to conversation

mdcheck: fix syntax error in mdcheck_start.timer

PATCH In review Coly Li 1 participant 2 messages Aug 21, 2020 MD RAID

lore
Share & tools
lore

Coly Li

author
#0 lore raw

PATCH 1/1 mdcheck: fix syntax error in mdcheck_start.timer

From: Ali Abdallah <[email protected]>

From: Ali Abdallah <[email protected]>

systemd fails to parse mdadm-timer Calendar specification, here is the error log message:

systemd[1]: [/usr/lib/systemd/system/mdcheck_start.timer:12] Failed to parse calendar specification, ignoring: Sun *-*-1..7 1:00:00 systemd[1]: mdcheck_start.timer: Timer unit lacks value setting. Refusing.

This patch fixes the mistaken syntax in mdcheck_start.timer and solve the above error messsage.

---
 systemd/mdcheck_start.timer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
systemd/mdcheck_start.timer +1 -1
index 9e7e02a..ba15ef5 100644
@@ -9,7 +9,7 @@
 Description=MD array scrubbing
 
 [Timer]
-OnCalendar=Sun *-*-1..7 1:00:00
+OnCalendar=Sun *-*-* 1:00:00
 
 [Install]
 WantedBy= mdmonitor.service
Signature · 1 line
2.26.2
author
#1 lore raw
Quoted 3 lines · Coly Li

From: Ali Abdallah <[email protected]>

From: Ali Abdallah <[email protected]>

I post this patch for Ali, because his original fix was posted in kernel bugzilla, and I doubt people may look at there.

Please consider to have them in mdadm upstream, we already have this fix in product for a while. Thanks.

Coly Li

Quoted 30 lines

systemd fails to parse mdadm-timer Calendar specification, here is the error log message:

systemd[1]: [/usr/lib/systemd/system/mdcheck_start.timer:12] Failed to parse calendar specification, ignoring: Sun *-*-1..7 1:00:00 systemd[1]: mdcheck_start.timer: Timer unit lacks value setting. Refusing.

This patch fixes the mistaken syntax in mdcheck_start.timer and solve the above error messsage.

---
 systemd/mdcheck_start.timer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
systemd/mdcheck_start.timer +1 -1
index 9e7e02a..ba15ef5 100644
@@ -9,7 +9,7 @@
 Description=MD array scrubbing
 
 [Timer]
-OnCalendar=Sun *-*-1..7 1:00:00
+OnCalendar=Sun *-*-* 1:00:00
 
 [Install]
 WantedBy= mdmonitor.service