Git Product home page Git Product logo

Comments (5)

SimonFair avatar SimonFair commented on August 14, 2024 1

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

from webgui.

SimonFair avatar SimonFair commented on August 14, 2024

You can specify the day and the which week in the month.

This runs on the 4th Sunday in the month.

image

from webgui.

masterwishx avatar masterwishx commented on August 14, 2024

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.

from webgui.

SimonFair avatar SimonFair commented on August 14, 2024

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.

from webgui.

masterwishx avatar masterwishx commented on August 14, 2024

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?

from webgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.