Package: samba
Version: 3.0.20b-3
Severity: normal

fcron reports the following:

  /etc/cron.daily/logrotate:
  sh: line 1: kill: (7056) - No such process
  error: error running postrotate script for /var/log/samba/log.nmbd
  run-parts: /etc/cron.daily/logrotate exited with return code 1

Looking at /etc/logrotate.d/samba, I see this:

 [ ! -f /var/run/samba/nmbd.pid ] || kill -HUP `cat /var/run/samba/nmbd.pid`

Perhaps this bug report should be about why nmbd went away on my system
without removing /var/run/samba/nmbd.pid (note that I am not actively
using samba at the moment).

One workaround is to replace the logrotate script with something that
removes the stale pid file:

if [ -f /var/run/samba/nmbd.pid ]; then
    pid=`cat /var/run/samba/nmbd.pid`
    ps $pid | grep -q nmbd
    if [ $? = 1 ]; then
        rm -f /var/run/samba/nmbd.pid
    else
        kill -HUP $pid
    fi
fi

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (600, 'testing'), (80, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_US)

Versions of packages samba depends on:
ii  debconf [debc 1.4.66                     Debian configuration management sy
ii  libacl1       2.2.34-1                   Access control list shared library
ii  libc6         2.3.5-8                    GNU C Library: Shared libraries an
ii  libcomerr2    1.38+1.39-WIP-2005.12.10-1 common error description library
ii  libcupsys2    1.1.23-12                  Common UNIX Printing System(tm) - 
ii  libkrb53      1.4.3-5                    MIT Kerberos runtime libraries
ii  libldap2      2.1.30-12                  OpenLDAP libraries
ii  libpam-module 0.79-3                     Pluggable Authentication Modules f
ii  libpam-runtim 0.79-3                     Runtime support for the PAM librar
ii  libpam0g      0.79-3                     Pluggable Authentication Modules l
ii  libpopt0      1.7-5                      lib for parsing cmdline parameters
ii  logrotate     3.7.1-2                    Log rotation utility
ii  lsb-base      3.0-12                     Linux Standard Base 3.0 init scrip
ii  netbase       4.23                       Basic TCP/IP networking system
ii  samba-common  3.0.20b-3                  Samba common files used by both th

Versions of packages samba recommends:
pn  smbldap-tools                 <none>     (no description available)

-- debconf information:
  samba/nmbd_from_inetd:
  samba/log_files_moved:
  samba/tdbsam: false
* samba/generate_smbpasswd: true
* samba/run_mode: daemons

-- 
Bill Wohler <[EMAIL PROTECTED]>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to