FS#56357 - [logwatch] move from cron to systemd

Attached to Project: Community Packages
Opened by Kamil Cukrowski (Kolor) - Friday, 17 November 2017, 12:33 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 19 September 2019, 11:02 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Base packages, like man-db, use systemd timers not cron files.
I would like to feature request moving logwatch from depending on cron to systemd timers.

I attach systemd files and patches in hope, they will someday be merged.

Thank you for the best distro ever!

Attachments:
- logwatch.service - simple oneshot logwatch systemd service file
- logwatch.timer - simple daily logwatch systemd timer (basically a copy of man-db.timer)
- logwatch-PKGBUILD.patch - patch for PKGBUILD. Added logwatch.service and logwatch.timer to sources, updated md5sums, incremented pkgrel, removed installing cron symlink, removed cron dependency, added installing systemd files.
- logwatch-svn.patch - copyied logwatch.{service,timer} and logwatch-PKGBUILD.patch to community/logwatch/{trunk,repos/community-any} and run 'svn add --force --depth infinity . ; svn diff'


This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 19 September 2019, 11:02 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Friday, 17 November 2017, 13:57 GMT
cron is what upstream provides. It would be best if you could get them to carry the systemd units as well.
Comment by Erich Eckner (deepthought) - Wednesday, 18 September 2019, 07:02 GMT
while it is true, that logwatch does not come from upstream with systemd timer units, it is *not* true, that logwatch is "what upstream provides".

https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/logwatch#n78
manually creates the cron job link and thus "creates" the dependency on cron.

At least, it would be nice if the cron dependency would be made optional, so one could decide whether he wants to use cron or manually write a systemd timer.

btw: I'm taking the feature request upstream: https://sourceforge.net/p/logwatch/feature-requests/14/
Comment by Erich Eckner (deepthought) - Thursday, 19 September 2019, 07:15 GMT
oh, apparently logwatch *does* come with systemd timers:
logwatch-7.5.2/scheduler/logwatch.service
logwatch-7.5.2/scheduler/logwatch.timer

also note, that there is install_logwatch.sh intended for installing logwatch - but it seems to have a quite strange idea of where which file should be installed by default :-/

Loading...