squid-deb-proxy's logrotate file calls "squid" instead of "squid3" on Precise [SRU]

Bug #984806 reported by Simon Déziel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
squid-deb-proxy (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

[Problem]
<1-2 sentence summary of the issue>

[Impact]
<fill me in with explanation of severity and frequency of bug on users and justification for backporting the fix to the stable release>

[Development Fix]
<fill me in with an explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. >

[Stable Fix]
<fill me in by pointing out a minimal patch applicable to the stable version of the package.>

[Text Case]
<fill me in with detailed *instructions* on how to reproduce the bug. This will be used by people later on to verify the updated package fixes the problem.>
1.
2.
3.
Broken Behavior:
Fixed Behavior:

[Regression Potential]
<fill me in with a discussion of likelihood and potential severity of regressions and how users could get inadvertently affected.>

[Original Report]

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

Tags: patch
Revision history for this message
Aditya V (kroq-gar78) wrote :

Trying to link it to Debian and file the bug later, but Launchpad keeps saying: "Package squid-deb-proxy is not published in Debian". NO idea why...

Revision history for this message
Aditya V (kroq-gar78) wrote :

I uploaded my ubuntu version of squid-deb-proxy from precise, and I'll attach the debdiff. It's based on Simon Deziel.?field.comment=I uploaded my ubuntu version of squid-deb-proxy from precise, and I'll attach the debdiff. It's based on Simon Deziel.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Debdiff to support both 'squid' and 'squid3' commands" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote : Re: squid-deb-proxy's logrotate file calls "squid" instead of "squid3" on Precise

This is in or on its way to precise via precise-proposed.

Changed in squid-deb-proxy (Ubuntu):
importance: Undecided → Medium
status: New → Fix Committed
Bryce Harrington (bryce)
description: updated
summary: squid-deb-proxy's logrotate file calls "squid" instead of "squid3" on
- Precise
+ Precise [SRU]
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package squid-deb-proxy - 0.6.3

---------------
squid-deb-proxy (0.6.3) precise-proposed; urgency=low

  [ Simon Déziel ]
  * Support squid and squid3 in logrotate config (LP: #984806)

  [ Michael Vogt ]
  * mirror-dstdomain.acl:
    - fix typo, thanks to Paolo Rotolo (LP: #978696)
 -- Michael Vogt <email address hidden> Thu, 19 Apr 2012 14:46:24 +0200

Changed in squid-deb-proxy (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.