Comment 0 for bug 984806

Revision history for this message
Simon Déziel (sdeziel) wrote : squid-deb-proxy's logrotate file calls "squid" instead of "squid3" on Precise

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