SOLVED Anacron job 'cron.daily' on host.name.tld

postcd

Well-Known Member
Oct 22, 2010
721
21
68
/etc/cron.daily/logrotate:

error: stat of /var/log/spooler failed: No such file or directory

____________
CENTOS 6.9; WHM v70.0.44
Installed Packages
logrotate.x86_64
3.7.8-28.el6
@base

cat /etc/logrotate.conf
size 200M
# see "man logrotate" for details
# rotate log files weekly
daily

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
dateext

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}

/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}

/dev/shm {
missingok
daily
}

/tmp/mysqltmp {
missingok
daily
}

# system-specific logs may be also be configured here.
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
touch /var/log/spooler

should get rid of the error (it will just rotate an empty file)
or you can edit the /etc/logrotate.d/syslog
and remove the /var/log/spooler entry
 
  • Like
Reactions: postcd

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

The previous post should help. I've marked this thread as solved.

Thanks!