(in the 'start' function, I touch a file -- then I can check the timestamp of the file to determine how long it has been since the program was run).
But I'm having a difficult time seeing how to put all of this into a single check.
the overall goal is to:
1. run an update script once (and only once) per night
2. at a random point between certain hours (sometime between 1am-2am, for example)
3. but only if the system load is below a certain threshold
I can accomplish this with various workarounds or by doing some of these checks within the called script -- but it "feels like" something monit should be able to do cleanly and that I'm missing something. Am I?