Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1716950 - Drop "sleep 1" from logrotate fragment?
Summary: Drop "sleep 1" from logrotate fragment?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luboš Uhliarik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-04 12:56 UTC by Marcos Mello
Modified: 2019-10-26 17:23 UTC (History)
4 users (show)

Fixed In Version: squid-4.8-5.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-26 17:23:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marcos Mello 2019-06-04 12:56:07 UTC
It was added here:

https://src.fedoraproject.org/rpms/squid/c/a3a8a5ebbad17592a03daef0acef79dd3ef639ce?branch=master

At this point, logrotate already renamed old log files. "squid -k rotate" just sends SIGUSR1 to main Squid process and returns. Squid will reopen its logs and done. What is the rationale of sleeping there?

Comment 1 Ben Cotton 2019-08-13 16:57:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 19:16:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 3 Marcos Mello 2019-10-08 10:56:01 UTC
If the "sleep 1" was added in case Squid continue writing to the logs after receiving SIGUSR1, the delaycompress logrotate option is much cleaner for that.

Comment 4 Luboš Uhliarik 2019-10-08 11:28:56 UTC
(In reply to Marcos Mello from comment #3)
> If the "sleep 1" was added in case Squid continue writing to the logs after
> receiving SIGUSR1, the delaycompress logrotate option is much cleaner for
> that.

I think, this was the case. I will use delaycompress in logrotate.

Comment 5 Fedora Update System 2019-10-08 12:46:58 UTC
FEDORA-2019-8bb0c4ccc7 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8bb0c4ccc7

Comment 6 Fedora Update System 2019-10-09 03:25:19 UTC
squid-4.8-5.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8bb0c4ccc7

Comment 7 Fedora Update System 2019-10-26 17:23:45 UTC
squid-4.8-5.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.