[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Replace cron with systemd timer unit?



On Thu, Aug 3, 2017 at 9:19 PM, Ben Finney wrote:

> If the cron job is removed – necessarily entailed by “replace it”,
> surely? – then how can they continue to use it after it is replaced by
> something else?

I would discourage removal of the cron job, but it could still be
replaced by a systemd timer when running under systemd, without
removing the cron job, so machines running sysvinit+cron can work the
same.

The example I gave of apt has a cron job script that exits quickly
when run under systemd and for sysvinit it reimplements the features
of systemd that the apt systemd timer uses (require AC power,
randomise start time) and then calls the same script that the apt
systemd service uses.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: