Bug 827232 - Logrotate for clamsmtp attempts to kill non-existent process
Summary: Logrotate for clamsmtp attempts to kill non-existent process
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clamsmtp
Version: 17
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nathanael Noblet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-31 22:45 UTC by Bojan Smojver
Modified: 2012-07-05 23:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-05 23:28:52 UTC
Type: Bug


Attachments (Terms of Use)

Description Bojan Smojver 2012-05-31 22:45:28 UTC
Description of problem:
The script has:
----------------
pkill -SIGHUP -f clamd.clamsmtp 2>/dev/null || :
----------------

There is no such process. Only this:
----------------
/usr/sbin/clamsmtpd -f /etc/clamsmtpd.conf -p /run/clamsmtpd/clamsmtpd.pid
----------------

Version-Release number of selected component (if applicable):
clamsmtp-1.10-8.fc17.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Wait for montly log rotation or do it by hand.
2. Get:
----------------
error: error running non-shared postrotate script for /var/log/clamd.clamsmtp/clamsmtpd.log of '/var/log/clamd.clamsmtp/clamsmtpd.log '
----------------

Actual results:
Error, most likely caused by pkill not matching any processes.

Expected results:
Should HUP the process properly (the manual of clamsmtpd doesn't mention HUP at all, but let's be optimistic).

Additional info:

Comment 1 Fedora Update System 2012-06-01 06:28:29 UTC
clamsmtp-1.10-9.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/clamsmtp-1.10-9.fc17

Comment 2 Fedora Update System 2012-06-26 21:39:43 UTC
Package clamsmtp-1.10-9.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing clamsmtp-1.10-9.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9961/clamsmtp-1.10-9.fc17
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-07-05 23:28:52 UTC
clamsmtp-1.10-9.fc17 has been pushed to the Fedora 17 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.