[arch-general] Comment on: Use systemd timers instead of /etc/cron.{hourly, daily, weekly, monthly}?

Leonid Isaev lisaev at umail.iu.edu
Tue May 6 16:13:34 EDT 2014


On Tue, 6 May 2014 13:23:26 -0500
Maciej Puzio <mx34567 at gmail.com> wrote:

> As I wrote before, I can edit every timer file and set the elapse
> time. What I can't do is to change one setting which says when daily
> maintenance tasks are run. This was possible with cron, but is no
> longer possible now. What's the problem to edit four files? Well, this
> is multiplied by the number of machines that are under my care.
> Again, here is relevant systemd RFE link:
> https://bugs.freedesktop.org/show_bug.cgi?id=77938

This is bogus.

See "man 7 systemd.time"; what you want is something like "OnCalendar=*-*-*
04:10:20" for a job that runs every day at 4:10:20 AM.

> On Mon, May 5, 2014 at 12:21 PM, Leonid Isaev <lisaev at umail.iu.edu> wrote:
> > Systemd timers (at least in the current form) are _not_ cron replacement.
> > However, they are adequate for daily maintainance jobs that are shipped
> > with packages. If you had custom, carefully scheduled cron jobs, you should
> > continue using cronie. What I don't understand is why do you care when
> > man-db/updatedb runs?

After re-reading the documentation I have to take this back, systemd timers
seem to implement all features provided by cronie.

Cheers,
-- 
Leonid Isaev
GPG fingerprints: DA92 034D B4A8 EC51 7EA6  20DF 9291 EE8A 043C B8C4
                  C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140506/fae91602/attachment.asc>


More information about the arch-general mailing list