logrotate error on rotating winbind

Bug #1325821 reported by latimerio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate (Ubuntu)
New
Undecided
Unassigned

Bug Description

I frequently get the following error from logrotate on some of my 12.04 LTS machines.

 /etc/cron.daily/logrotate:
 logrotate_script: line 1: kill: (1660) - No such process
 error: error running non-shared postrotate script for /var/log/samba/log.winbindd of '/var/log/samba/log.winbindd '
 run-parts: /etc/cron.daily/logrotate exited with return code 1

/etc/logrotate.d/winbind has the default content shown below.
The kill command returns an error if for whatever reason the PID listed in /var/run/samba/winbindd.pid is not running.

Thus the kill line should be improved to something like
  [ -f /var/run/samba/winbind.pid ] && { PID=$(cat /var/run/samba/winbindd.pid) ; ps -p $PID | grep -q $PID && kill -HUP $PID ; }

/var/log/samba/log.winbindd {
        weekly
        missingok
        rotate 7
        postrotate
        [ ! -f /var/run/samba/winbindd.pid ] || kill -HUP `cat /var/run/samba/winbindd.pid`
        endscript
        compress
        notifempty
}

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1325821

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
latimerio (fomember)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
affects: linux (Ubuntu) → logrotate (Ubuntu)
Changed in logrotate (Ubuntu):
status: Confirmed → New
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.