#3 systemd timer units

Unstable_(example)
closed
5
2014-06-18
2014-05-19
Gilrain
No

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.

Cheers

1 Attachments

Discussion

  • 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
     

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

Sign up for the SourceForge newsletter:





No, thanks