Re: [systemd-devel] at replacement
On Do, 12.07.18 13:07, Filipe Brandenburger (filbran...@google.com) wrote: > Hi, > > On Thu, Jul 12, 2018 at 12:04 PM Matt Zagrabelny wrote: > > I know systemd can replace cron. Do folks use it to replace "at", too? > > > > I know it *can* - with two files per "at" entry and then enabling and > > starting the timer. > > > > Is there an easier with to replace "at" with systemd than creating two > > files and enabling and starting the timer? > > Take a look at systemd-run and, in particular, options such as > --on-active=, --on-calendar= and --timer-property=, which allow you to > set a .timer option on demand for a single one-off command. > > https://www.freedesktop.org/software/systemd/man/systemd-run.html#--on-active= > > I hope this helps! One addition to the above: note that "at"'s queue is maintained persistently, while timers created transiently with "systemd-run" are lost on the next reboot. Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] at replacement
On Thu, Jul 12, 2018 at 2:06 PM Matt Zagrabelny wrote: > On Thu, Jul 12, 2018 at 3:07 PM, Filipe Brandenburger > wrote: >> Take a look at systemd-run and, in particular, options such as >> --on-active=, --on-calendar= and --timer-property=, which allow you to >> set a .timer option on demand for a single one-off command. > > What sort of timer properties are folks setting or adjusting via the > --timer-property? That is, when would I use such an option? Technically, any options accepted in systemd.timer are possible: https://www.freedesktop.org/software/systemd/man/systemd.timer.html#Options For instance, RandomizedDelaySec= might be an interesting one you might want to use. AccuracySec= is also one you potentially want to look into, if you care about the accuracy of the time at which your command will run. Cheers, Filipe smime.p7s Description: S/MIME Cryptographic Signature ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] at replacement
Hey Filipe, On Thu, Jul 12, 2018 at 3:07 PM, Filipe Brandenburger wrote: > Hi, > > On Thu, Jul 12, 2018 at 12:04 PM Matt Zagrabelny > wrote: > > I know systemd can replace cron. Do folks use it to replace "at", too? > > > > I know it *can* - with two files per "at" entry and then enabling and > starting the timer. > > > > Is there an easier with to replace "at" with systemd than creating two > files and enabling and starting the timer? > > Take a look at systemd-run and, in particular, options such as > --on-active=, --on-calendar= and --timer-property=, which allow you to > set a .timer option on demand for a single one-off command. > What sort of timer properties are folks setting or adjusting via the --timer-property? That is, when would I use such an option? > > https://www.freedesktop.org/software/systemd/man/systemd- > run.html#--on-active= > > I hope this helps! > It does! Thanks much! -m ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] at replacement
Hi, On Thu, Jul 12, 2018 at 12:04 PM Matt Zagrabelny wrote: > I know systemd can replace cron. Do folks use it to replace "at", too? > > I know it *can* - with two files per "at" entry and then enabling and > starting the timer. > > Is there an easier with to replace "at" with systemd than creating two files > and enabling and starting the timer? Take a look at systemd-run and, in particular, options such as --on-active=, --on-calendar= and --timer-property=, which allow you to set a .timer option on demand for a single one-off command. https://www.freedesktop.org/software/systemd/man/systemd-run.html#--on-active= I hope this helps! Cheers, Filipe smime.p7s Description: S/MIME Cryptographic Signature ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] at replacement
I know systemd can replace cron. Do folks use it to replace "at", too? I know it *can* - with two files per "at" entry and then enabling and starting the timer. Is there an easier with to replace "at" with systemd than creating two files and enabling and starting the timer? Thanks for any info! -m ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel