[systemd-devel] systemd-cron: retrigger generator after /var is mounted

Alexandre Detiste alexandre.detiste at gmail.com
Wed Oct 22 04:26:24 PDT 2014


(sorry mail fired up too soon)

> Or to put this differently we will not create. come up with, ship ( and 
> thus support those ) generators but expect consumers of systemd to use 
> systemd and it's format natively in their environment.
> 
> Alexandre why did you decide to write that generate to begin with?

Hi, 

I didn't wrote it.

I've been using the systemd-cron Debian package since 2013/10 to take care of /etc/cron.daily/
I soon noticed it wasn't processing the crontabs , I added a symlink on /etc/cron.weekly/
to emulate the one I cared about and forgot about it.

Then in june there was a bug filled to remove the "Provides: cron-daemon" 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752376

This virtual package cron-daemon act as a gear box that lets users switch
at their will from one cron daemon to another. It documents a specific interface
( /etc/crontab , /etc/cron.*/ ...)

Without this "Provides:", systemd-cron would had been useless.
This prompted me to find a better solution.

Konstantin Stepanov (https://github.com/kstep/systemd-crontab-generator)
and Dwayne bent (static units, build infrastructure)
kindly agreed to let me merge their respective projects to get a full feature
systemd-cron package.

Then I went on with development.


> Why not migrate what needs to be migrated to native system timer formats 
> for those relevant component 
I have no power over this.

> and leave the rest be handled by the 
> traditional cron daemons since those two components complement each 
> others shortcomings ?

"The rest" ? The generator can now handle all possible cases;
it just doesn't send emails like cron; but that will remain an wontfix I guess.

Alexandre Detiste




More information about the systemd-devel mailing list