Parity Check does not include a day of month
Opened this issue · 5 comments
Yes, but can't set 1day of month every 3 months.
If I set Sunday of first week, but in first week no Sunday this month?
For example month starting at Friday at 1day...
Can I set manually (0 0 1 */3 *) in parity-check. cron?
Strange that this option not available in WebGUI.
You should be able to edit.
root@computenode:~# cat /boot/config/plugins/dynamix/parity-check.cron
Generated parity check schedule:
0 0 * 1,4,7,10 0 [[ $(date +%e) -le 7 ]] && /usr/local/sbin/mdcmd check NOCORRECT &> /dev/null || :
and then run update_cron. But not sure how it will show in gui.
I tryed (0 0 1 */3 *) it shows like every 1day of every month...
you think (0 0 1 */3 *) this will not work? If it use cron at all.
I need use your example?
No it was just a example of the format.
So you could create /boot/config/plugins/dynamix/custom-parity-check.cron
0 0 1 */3 * /usr/local/sbin/mdcmd check &> /dev/null
once created run update_cron
It should put this entry into /etc/cron.d/root