Bug#923014: Add systemd unit - allow usage without cron installed

2022-11-19 Thread Paul Wise
On Fri, 2022-11-18 at 16:06 +0100, Bill Allombert wrote: > But then the user would not be able to configure it anymore, > so I do not see the upside. I just discovered an alternative that preserves the current location and the conffile status of the cron.daily script. The script stays the same,

Bug#923014: Add systemd unit - allow usage without cron installed

2022-11-19 Thread Paul Wise
On Fri, 2022-11-18 at 16:06 +0100, Bill Allombert wrote: > But then the user would not be able to configure it anymore, > so I do not see the upside. They would be able to configure it via the config file as usual. /etc/popularity-contest.conf They could also patch it automatically via an

Bug#923014: Add systemd unit - allow usage without cron installed

2022-11-18 Thread Bill Allombert
On Thu, Nov 17, 2022 at 09:37:27AM +0800, Paul Wise wrote: > On Wed, 2022-11-16 at 19:00 +0100, Bill Allombert wrote: > > > /etc/cron.daily/popularity-contest is a conffile, I cannot make it into > > a systemd service. > > The usual way to handle both cron and systemd timers is to move most of

Bug#923014: Add systemd unit - allow usage without cron installed

2022-11-16 Thread Alexandre Detiste
Hi, That's nucely written out, better than I could. An extra bit of policy(*) I attempt to infuse with/for systemd-cron is this one: the name of the crontab (here "apt-compat") should match the name of the main timer (here "apt-daily", so not the case yet) so that systemd-cron will ignore this

Bug#923014: Add systemd unit - allow usage without cron installed

2022-11-16 Thread Paul Wise
On Wed, 2022-11-16 at 19:00 +0100, Bill Allombert wrote: > /etc/cron.daily/popularity-contest is a conffile, I cannot make it into > a systemd service. The usual way to handle both cron and systemd timers is to move most of the logic in the cron script into a script in /usr then make the cron

Bug#923014: Add systemd unit - allow usage without cron installed

2022-11-16 Thread Bill Allombert
On Fri, Feb 22, 2019 at 04:00:30PM -0800, Bryan Quigley wrote: > Package: popularity-contest > Version: 1.67 > > This is regards to the popularity-contest cron job. I'm looking into > running systems without anacron/cron installed - instead using systemd > timers. Hello Bryan, Why not use

Bug#923014: Add systemd unit - allow usage without cron installed

2019-02-22 Thread Bryan Quigley
Package: popularity-contest Version: 1.67 This is regards to the popularity-contest cron job. I'm looking into running systems without anacron/cron installed - instead using systemd timers. My suggestion would be to remove the what to do functionality from the cron job/timing bits to another