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

Re: Favoring systemd timers over cron files Re: Removing sysV init files



On 01/15/2016 09:29 PM, Jens Reyer wrote:
Does this also work somehow for e.g. foo-daily.service + foo-daily.timer being favored over /etc/cron.daily/foo? Next to a foo.service being favored over /etc/init.d/foo. Thanks and greets jre

No, it won't work automatically. Cron doesn't look at systemd units. You could of course put something like this at the top of your /etc/cron.daily/foo:

   if [ -d /run/systemd/system ]; then
        exit 0;
   fi


Reply to: