News for hackers. Stuff that matters.
Re:Visualizing All Processes in a Datacenter by lathiat on Wednesday September 06, 2017 @09:14AM (#15183360)
Seems like this is actually the default behaviour for a systemd timer, ha.

"Note that in case the unit to activate is already active at the time the timer elapses it is not restarted, but simply left running."

On the flip side I wonder if you can tell it to timeout and kill the service after a while, as I can equally see them getting stuck and never running again, a problem you don't have with the alternative method :-)

Ah, choices...

Re:Visualizing All Processes in a Datacenter by rakoo on Wednesday September 06, 2017 @12:06PM (#15184728)
Right in the doc (https://www.freedesktop.org/software/systemd/man/systemd.uni...):

> JobTimeoutSec=, JobRunningTimeoutSec=, JobTimeoutAction=, JobTimeoutRebootArgument=

> When a job for this unit is queued, a time-out JobTimeoutSec= may be configured. Similarly, JobRunningTimeoutSec= starts counting when the queued job is actually started. If either time limit is reached, the job will be cancelled