Skip to main content
Solved

Only run policy during a 1hour window every 24hours

  • March 20, 2018
  • 2 replies
  • 33 views

Forum|alt.badge.img+13

I have a maintenance process, let's call it, that could take awhile to execute. I want to use jamf policy to manage it. I'm trying to avoid creating a launchdaemon for this because it's temporary. It could take hours and part of the script has a hard cutoff after 10hours. I also want this to execute at 9-10pm at night during reoccurring checkin. At 10:01, I no long want this maintenance process to run.

Would setting the client side limitation to not run between 10pm to 9pm work to accomplish this?

Again, I want a maintenance process to run at 9-10 pm start time ONLY.

Thanks in advance, you guys are the best.

Best answer by rderewianko

That's correct

Do not run between
10 pm and 9 pm

However, if that process is currently triggerat 9:59 pm it'll run till finished. It won't stop because 10PM hit.

2 replies

Forum|alt.badge.img+18
  • Honored Contributor
  • Answer
  • March 20, 2018

That's correct

Do not run between
10 pm and 9 pm

However, if that process is currently triggerat 9:59 pm it'll run till finished. It won't stop because 10PM hit.


Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • March 20, 2018

Thanks brony. Yea, that is fine because the program will not run longer than 10 hours. This is perfect. Thank you for confirming.