[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-devel-list
Subject:    Re: systemd.timer: Get next start time from unit being run?
From:       Lennart Poettering <mzerqung () 0pointer ! de>
Date:       2014-11-30 23:30:08
Message-ID: 20141130233008.GA18231 () gardel-login
[Download RAW message or body]

On Tue, 25.11.14 12:17, Richard Shaw (hobbes1069@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

-- 
Lennart Poettering, Red Hat
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic