Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18001 - [dcron] logrotate logging

Attached to Project: Arch Linux
Opened by orbisvicis (orbisvicis) - Monday, 25 January 2010, 19:24 GMT
Last edited by Paul Mattal (paul) - Tuesday, 26 January 2010, 16:29 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
. anacron:
- - anacron should be logging to /var/log/anacrond.log according to /etc/rc.d/anacrond [/usr/sbin/anacron -s >> /var/log/anacrond.log 2>&1]
- - however /var/log/anacrond.log is empty
- - instead anacron (and only anacron) is logging to /var/log/crond.log
- - /etc/logrotate.d/anacrond specifies [/var/log/anacrond] which doesnt exists instead of [/var/log/anacrond.log] or [/var/log/crond.log]

. crond
- - crond logs to [/var/log/crond] (maybe via syslog?)
- - /etc/logrotate.d/crond specifies [/var/log/crond]
- - but /etc/logrotate.d/crond.pacnew specifies /var/log/crond.log which as stated above is only used by anacron.


Additional info:
* package version(s)
core/logrotate 3.7.8-1
core/dcron 4.4-1
community/anacron 2.3-9

* config and/or log files etc.
/var/log/crond.log:
...
Jan 24 17:00:14 anacron[5179]: Anacron 2.3 started on 2010-01-24
Jan 24 17:00:14 anacron[5179]: Normal exit (0 jobs run)
Jan 25 08:11:21 anacron[5176]: Anacron 2.3 started on 2010-01-25
Jan 25 08:11:21 anacron[5176]: Will run job `cron.daily' in 10 min.
...

/var/log/crond:
...
24-Jan-2010 01:01 FILE /var/spool/cron/root USER root pid 5204 cmd /usr/sbin/run-cron /etc/cron.hourly
24-Jan-2010 10:17 /usr/sbin/crond V3.2 dillon, started
24-Jan-2010 17:00 /usr/sbin/crond V3.2 dillon, started
24-Jan-2010 17:01 FILE /var/spool/cron/root USER root pid 6129 cmd /usr/sbin/run-cron /etc/cron.hourly
...

/var/log/anacrond.log: [empty]

Other thoughts:
. don't know if the missing .log suffix makes any difference
. if possible the log location should be modified, maybe via [/etc/syslog-ng/syslog-ng.conf] or
. otherwise at least the logrotate entries should probably be straightened out
This task depends upon

Closed by  Paul Mattal (paul)
Tuesday, 26 January 2010, 16:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  Resolved with dcron 4.4-1.
Comment by Andrea Scarpino (BaSh) - Monday, 25 January 2010, 20:03 GMT
added me and Eric to assigned because anacron is orphaned
Comment by Eric Belanger (Snowman) - Monday, 25 January 2010, 21:45 GMT
I removed anacron. functionnality is now provided by dcron. I'm unassigning Andrea and myself.
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 25 January 2010, 23:22 GMT
I don't use anacron, but dcron looks good to me:

My dcron 4.4-1 logs output to /var/log/crond.log (syslog.conf is configured for this file) and logrotate is configured to the same /var/log/crond.log

/var/log/crond is not used anymore by new dcron.
Comment by orbisvicis (orbisvicis) - Tuesday, 26 January 2010, 15:39 GMT
In that case, looks like this bug can be closed. (the new dcron logs to crond.log for me as well)

Loading...