Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1125244
| From | Paul Wise <pabs@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#923014: Add systemd unit - allow usage without cron installed |
| Date | 2022-11-17 02:40 +0100 |
| Message-ID | <FsC2J-4f0P-1@gated-at.bofh.it> (permalink) |
| References | <xut3b-OQ-5@gated-at.bofh.it> <xut3b-OQ-5@gated-at.bofh.it> <FsvkB-4aTc-3@gated-at.bofh.it> <xut3b-OQ-5@gated-at.bofh.it> <FsvkB-4aTc-3@gated-at.bofh.it> |
| Organization | Debian |
[Multipart message — attachments visible in raw view] - view raw
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 script exit under systemd or call the /usr script under sysvinit and then add a systemd timer and service that calls the /usr script. An example of this approach is in the apt package, I think you could use most of that as-is but adjusting names for the popcon cron job: /etc/cron.daily/apt-compat /usr/lib/apt/apt.systemd.daily /lib/systemd/system/apt-daily.service /lib/systemd/system/apt-daily.timer /lib/systemd/system/apt-daily-upgrade.service /lib/systemd/system/apt-daily-upgrade.timer The systemd.directives manual page can be used to look up where individual settings in the systemd service/timer files are documented. -- bye, pabs https://wiki.debian.org/PaulWise
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#923014: Add systemd unit - allow usage without cron installed Bill Allombert <ballombe@debian.org> - 2022-11-16 19:30 +0100
Bug#923014: Add systemd unit - allow usage without cron installed Paul Wise <pabs@debian.org> - 2022-11-17 02:40 +0100
Bug#923014: Add systemd unit - allow usage without cron installed Alexandre Detiste <alexandre.detiste@gmail.com> - 2022-11-17 05:30 +0100
Bug#923014: Add systemd unit - allow usage without cron installed Bill Allombert <ballombe@debian.org> - 2022-11-18 16:10 +0100
Bug#923014: Add systemd unit - allow usage without cron installed Paul Wise <pabs@debian.org> - 2022-11-19 10:30 +0100
Bug#923014: Add systemd unit - allow usage without cron installed Paul Wise <pabs@debian.org> - 2022-11-20 01:20 +0100
csiph-web