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
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
|
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
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/
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 :-/