[Bug 1760855] Re: logrotate rules do not allow for samba being disabled.
Andreas Hasenack
andreas at canonical.com
Mon Aug 27 17:26:18 UTC 2018
This was fixed in 2:4.8.4+dfsg-2ubuntu1
** Changed in: samba (Ubuntu)
Status: In Progress => Fix Released
--
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/1760855
Title:
logrotate rules do not allow for samba being disabled.
Status in samba package in Ubuntu:
Fix Released
Status in samba package in Debian:
Fix Released
Bug description:
The logrotate rules for log.smbd and log.nmbd assume that if /usr/bin/smbcontrol can be run then samba can be restarted.
This ignores the fact that it is possible to have samba installed, but to have it disabled (you may wish to only enable it for running tests, then disable it again).
The result is:
/etc/cron.daily/logrotate:
Can't find pid for destination 'smbd'
error: error running non-shared postrotate script for /var/log/samba/log.smbd of '/var/log/samba/log.smbd '
Can't find pid for destination 'nmbd'
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
Given that it may be disabled it would also make sense to include "notifempty" in the rules. so that past ones don't get removed.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: samba 2:4.6.7+dfsg-1ubuntu3.2
ProcVersionSignature: Ubuntu 4.13.0-37.42-generic 4.13.13
Uname: Linux 4.13.0-37-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Apr 3 13:34:00 2018
InstallationDate: Installed on 2017-11-19 (135 days ago)
InstallationMedia: Kubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
RelatedPackageVersions:
nautilus N/A
gvfs 1.34.1-1ubuntu1
SambaClientRegression: Yes
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.logrotate.d.samba: 2017-11-26T00:56:36.795055
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1760855/+subscriptions
More information about the foundations-bugs
mailing list