You are not logged in.

#1 2016-07-06 13:52:31

Sanjeev K Sharma
Member
Registered: 2013-08-14
Posts: 68

[SOLVED] systemd timers and jobs that need to alternate

I have jobs that should run a certain time apart so systemd timers look like a good solution with OnUnitInactiveSec and related types

but some of the jobs should  run some time after other jobs, ideally with a delay like that provided by OnUnitInactiveSec

so it's timers plus (timing-based dependencies)

anyone know how to do this?

Last edited by Sanjeev K Sharma (2016-07-15 13:20:35)

Offline

#2 2016-07-06 14:25:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,043

Re: [SOLVED] systemd timers and jobs that need to alternate

My approach would be to schedule the first job with systemd timers.  Have the first job schedule the second job to run at a later time using the at command.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB