The logrotate configuration is trying to call "squid" instead of "squid3" to notify the proxy of the log rotation. Here is the error mail from cron :
/etc/cron.daily/logrotate: logrotate_script: 2: logrotate_script: /usr/sbin/squid: not found error: error running shared postrotate script for '/var/log/squid-deb-proxy/*.log ' run-parts: /etc/cron.daily/logrotate exited with return code 1
Here is the faulty logrotate config extract from /etc/logrotate.d/squid-deb-proxy :
postrotate test ! -e /var/run/squid-deb-proxy.pid || /usr/sbin/squid -f /etc/squid-deb-proxy/squid-deb-proxy.conf -k rotate endscript
# lsb_release -rd Description: Ubuntu precise (development branch) Release: 12.04
# apt-cache policy squid-deb-proxy squid-deb-proxy: Installed: 0.6.2 Candidate: 0.6.2 Version table: *** 0.6.2 0 500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status
# apt-cache policy squid3 squid3: Installed: 3.1.19-1ubuntu2 Candidate: 3.1.19-1ubuntu2 Version table: *** 3.1.19-1ubuntu2 0 500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status
The logrotate configuration is trying to call "squid" instead of "squid3" to notify the proxy of the log rotation. Here is the error mail from cron :
/etc/cron. daily/logrotate : squid-deb- proxy/* .log ' daily/logrotate exited with return code 1
logrotate_script: 2: logrotate_script: /usr/sbin/squid: not found
error: error running shared postrotate script for '/var/log/
run-parts: /etc/cron.
Here is the faulty logrotate config extract from /etc/logrotate. d/squid- deb-proxy :
postrotate squid-deb- proxy.pid || /usr/sbin/squid -f /etc/squid- deb-proxy/ squid-deb- proxy.conf -k rotate
test ! -e /var/run/
endscript
# lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04
# apt-cache policy squid-deb-proxy archive. ubuntu. com/ubuntu/ precise/main amd64 Packages dpkg/status
squid-deb-proxy:
Installed: 0.6.2
Candidate: 0.6.2
Version table:
*** 0.6.2 0
500 http://
100 /var/lib/
# apt-cache policy squid3 archive. ubuntu. com/ubuntu/ precise/main amd64 Packages dpkg/status
squid3:
Installed: 3.1.19-1ubuntu2
Candidate: 3.1.19-1ubuntu2
Version table:
*** 3.1.19-1ubuntu2 0
500 http://
100 /var/lib/