[Bug 1385868] [NEW] Samba logrotate script uses invalid argument to /etc/init.d/nmdb

Josh Holland josh at inv.alid.pw
Sun Oct 26 12:59:28 UTC 2014

Public bug reported:

I received the following in an email from Anacron:

Usage: /etc/init.d/nmbd {start|stop|restart|force-reload|status}
error: error running non-shared postrotate script for /var/log/samba/log.nmbd of '/var/log/samba/log.nmbd '
run-parts: /etc/cron.daily/logrotate exited with return code 1

On further investigation I found that the problem lies in the
/etc/logrotate.d/samba file:

/var/log/samba/log.nmbd {
	rotate 7
		service nmbd reload 2>/dev/null

where the postrotate script specifies a "reload", which the init script
does not recognise.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: samba 2:4.1.11+dfsg-1ubuntu2
ProcVersionSignature: Ubuntu 3.16.0-23.31-generic 3.16.4
Uname: Linux 3.16.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Oct 26 12:36:21 2014
InstallationDate: Installed on 2014-05-30 (148 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
OtherFailedConnect: Yes
SambaServerRegression: No
SmbConfIncluded: No
SourcePackage: samba
UpgradeStatus: Upgraded to utopic on 2014-10-18 (8 days ago)

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug utopic

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.

  Samba logrotate script uses invalid argument to /etc/init.d/nmdb

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list