[Bug 1375072] Re: logrotate for smbd log restarts nmbd instead of smbd

dino99 1375072 at bugs.launchpad.net
Wed Aug 5 15:31:23 UTC 2015


This version has expired a while ago

** Changed in: samba (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1375072

Title:
  logrotate for smbd log restarts nmbd instead of smbd

Status in samba package in Ubuntu:
  Invalid

Bug description:
  Marking security because this causes loss of logging information.

       1	/var/log/samba/log.smbd {
       2		weekly
       3		missingok
       4		rotate 7
       5		postrotate
       6			[ ! -f /var/run/samba/nmbd.pid ] || kill -HUP `cat /var/run/samba/nmbd.pid`
       7		endscript
       8		compress
       9		notifempty
      10	}

  Please see line 6 - although we are rotating log.smbd,
  logrotate is asked to send the HUP signal to the wrong process, nmbd.

  In two places, nmbd.pid must be replaced by smbd.pid, 
  otherwise processes continue to log into a compressed/deleted logfile, causing logs to get lost.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: samba 2:3.4.7~dfsg-1ubuntu3.15
  ProcVersionSignature: Ubuntu 2.6.32-65.131-generic-pae 2.6.32.63+drm33.26
  Uname: Linux 2.6.32-65-generic-pae i686
  Architecture: i386
  Date: Mon Sep 29 02:06:53 2014
  ProcEnviron:
   PATH=(custom, no user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SambaServerRegression: No
  SourcePackage: samba

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1375072/+subscriptions



More information about the foundations-bugs mailing list