Comment 2 for bug 617437

Revision history for this message
Travis Hampton (hampton-travis) wrote :

This morning I started getting the following error:
  sh: cannot create /dev/null: Permission denied

I then ran ls -al /dev/null*
-rw-r--r-- 1 root root 49 2010-08-13 10:56 /dev/null
crw-rw-rw- 1 root root 1, 3 2010-08-09 15:49 /dev/null.1

Looked to me like /dev/null had been rotated. So I looked at logrotate's status file and "/dev/null" and "/etc/init.d/apache2" was in there with yesterday's date. I also noticed there was some other weird entries in the file. I looked in /etc/logrotate.d/ and found the apache2 file. I then discovered I hadn't purged apache's config files when I removed apache2. At this point I assumed the left over config file was the issue as it was the only config file that contained all the items that where being rotated.