#3 systemd timer units


systemd offers a timer able to replace cron. Here's a patch attempting to integrate this functionality into pgl and its build process. I've tested the resulting package against the latest stable release (2.2.4) successfully and hope everything will be up to pgl standards.

The mechanism is quite simple, consisting of 2 files: a service dedicated to the command "pglcmd update" and a timer calling the service at specific intervals.
The main pgl.service was updated to enable the timer at the same time that pgl.service is enabled. This replicates the defaults state of the cron script to make things simpler for users.
The rest of the diff is just makefile voodoo.


1 Attachments


  • jre-phoenix

    jre-phoenix - 2014-06-18

    Thanks again. I applied the patch on git master.

    As discussed on https://aur.archlinux.org/packages/pgl/ we should add a soft dependency on network.target.
    Feel free to push that directly to git master when you have figured out how to implement it best.

  • jre-phoenix

    jre-phoenix - 2014-06-18
    • status: open --> closed
    • assigned_to: John Thile

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks