systemd.timer: Get next start time from unit being run?
mzerqung at 0pointer.de
Sun Nov 30 23:30:08 UTC 2014
On Tue, 25.11.14 12:17, Richard Shaw (hobbes1069 at gmail.com) wrote:
> I've got a TV schedule grabber script that needs to be run on a more or
> less daily basis. That would be good enough, but the script suggests a next
> start time in it's output when it completes.
> If I can figure out a way to pull that time from the script, is there a way
> to pass that to systemd?
There are plans to extend the concept of "transient" units to timer
units, which would then allow this nicely with nice tools.
Other than that you can of course always write a timer unit in
/etc/systemd/system from a shell script, and then issue "systemctl
daemon-reload" and start it with "systemctl start".
Lennart Poettering, Red Hat
More information about the devel