FS#12910 - [dcron] No syslog for dcron
Attached to Project:
Arch Linux
Opened by Kaiting Chen (Phoenixfire159) - Friday, 23 January 2009, 17:08 GMT
Last edited by Paul Mattal (paul) - Monday, 25 January 2010, 13:36 GMT
Opened by Kaiting Chen (Phoenixfire159) - Friday, 23 January 2009, 17:08 GMT
Last edited by Paul Mattal (paul) - Monday, 25 January 2010, 13:36 GMT
|
Details
Description: By default Arch Linux installs dcron as the
cron daemon, and it is also the only supported cron
available. dcron does not support logging via syslog, while
'cron' is one of the core facilities of syslog. Every other
cron supports logging via syslog, including the more
standard vixie-cron.
Recommend change default cron to vixie-cron. |
This task depends upon
Closed by Paul Mattal (paul)
Monday, 25 January 2010, 13:36 GMT
Reason for closing: Fixed
Additional comments about closing: We chose to upgrade to the dcron 4.x series which supports syslog logging.
Monday, 25 January 2010, 13:36 GMT
Reason for closing: Fixed
Additional comments about closing: We chose to upgrade to the dcron 4.x series which supports syslog logging.
What options do we have? vixie-cron? fcron? Suggestions?
fcron supports the standard crontab format, and more. The only thing I changed from Arch's crontab is to add fcron's &bootrun flag to the cron.{hourly,daily,weekly,monthly} rules. This has a very good effect for a non always-on machine: If you boot the machine it will run each cronjobs that it missed (but only once). Without this, my desktop didn't updatedb (I always shut it down before midnight back then) and several other things were broken.
fcron is stable as hell, flexible and can be used with the same default settings as we use dcron. Check out the fcron package from community (I originally created it, it has been updated once or twice since I left the TU team) and read the docs.
Download Size : 123.92 K
Installed Size : 319.47 K
This is considerably larger than dcron, I hope this is not a showstopper.
1) I use it without an MTA.
2) You can install the package and it works, and in the default configuration, it doesn't do anything more than dcron (or vixie)
Can you tell me what exactly is complex about fcron? Another point in favor of fcron: We already have a working and well-tested package for that in community, while there is none for vixie (yay, people must be so interested in it).
I'd rather offer one good cron implementation than 4 of varying feature levels- we shouldn't support more than we need to.
To use the "much much more" features you have to add non-standard options to crontab. As I explained before, the &bootrun flag will trigger the anacron-like features (I don't think it makes sense to have an extra application for that). All other extra features have similar custom flags. A "standard" crontab will only trigger the standard features.
I still vote for fcron, but I hope there will be more opinions on it than just mine and yours.
Anyways, no matter what cron was offered, it would probably be better than dcron, so it's not a huge deal.
/var/log/crond says:
03-Mar-2009 13:28 failed user root parsing MAILTO=cron@example.com
so, that minimal dcron forces me to have a full blown MTA on that machine, cause my minimal MTA ssmtp can't handle aliases...
/usr/sbin/crond >> /var/log/crond
use something like:
[ ! -p /var/lib/cron.pipe ] && mknod /var/lib/cron.pipe p
/usr/sbin/crond >> /var/lib/cron.pipe
then use pipe(/var/lib/cron.pipe) as a source for syslog-ng.
Full rationale in mailing list thread:
http://mailman.archlinux.org/pipermail/arch-dev-public/2010-January/014781.html
On/after 1/10, I will package bcron in [extra], and if my longer tests confirm it's a suitable replacement, I will suggest to tpowa that it replace dcron in [core].