The last couple weeks I've been getting this error mailed to me by my Debian Sarge Mail server
Quote:
To: postmaster@
From CRONDAILY@
Subject: Cron <root@mail> test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
Body:
/etc/cron.daily/logrotate:
/tmp/logrotate.WY11lL: line 4: kill: (20842) - No such process
error: error running postrotate script
run-parts: /etc/cron.daily/logrotate exited with return code 1
|
Heres the logrotate entry in cron.daily, and the logrotate.conf file. Everything is default settings and configuration as it was installed. I haven't changed anything in either of these files..
Code:
username@mail:/etc/cron.daily$ cat logrotate
#!/bin/sh
test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
Code:
username@mail:/etc$ cat /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be configured here
I have received this error notification for the last 3 Sundays now (7/1/2007 - 7/8/2007 - 7/15/2007 ) .. Any idea why this is throwing an error ?
It's just odd that this popped up all of a sudden when no changes have been made to the system. any pointers would be appreciated.
It appears all the logs are being rotated properly..
Code:
-rw-r----- 1 root adm 6654927 2007-07-17 16:14 mail.log
-rw-r----- 1 root adm 8276534 2007-07-17 02:24 mail.log.0
-rw-r----- 1 root adm 501870 2007-07-16 02:25 mail.log.1.gz
-rw-r----- 1 root adm 540524 2007-07-15 02:25 mail.log.2.gz
-rw-r----- 1 root adm 706051 2007-07-14 02:24 mail.log.3.gz
-rw-r----- 1 root adm 839874 2007-07-13 02:25 mail.log.4.gz
-rw-r----- 1 root adm 706905 2007-07-12 02:25 mail.log.5.gz
-rw-r----- 1 root adm 767722 2007-07-11 02:25 mail.log.6.gz
Thanks !
Bah meant to post this in the Debian Distro Forum... Oh well..