monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

check program entry that runs only once using the every [cron] line


From: Marc Rossi
Subject: check program entry that runs only once using the every [cron] line
Date: Fri, 26 Feb 2016 12:28:10 -0600

Is it possible to use monit to run a batch job that needs to run once a day?

For example:

check program my-program
    with path "/usr/local/bin/my-program.py"
    every "0 6 * * 1-5"
    if status != 0 then alert

Would run this job only once a day @ 6:00 am M-F?  I know the docs say to not use a "specific minute" but I have my polling interval set to 20 seconds using "set daemon 20" in my config file.

Does this potentially run twice in a minute?  Say @ 6:00:00 and 6:00:20 for example?

TIA
Marc


reply via email to

[Prev in Thread] Current Thread [Next in Thread]