logrotate rules do not allow for samba being disabled.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Debian) |
Fix Released
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
Low
|
Andreas Hasenack |
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/
Can't find pid for destination 'smbd'
error: error running non-shared postrotate script for /var/log/
Can't find pid for destination 'nmbd'
error: error running non-shared postrotate script for /var/log/
run-parts: /etc/cron.
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+
ProcVersionSign
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)
RelatedPackageV
nautilus N/A
gvfs 1.34.1-1ubuntu1
SambaClientRegr
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
Related branches
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 1601 lines (+1289/-21)8 files modifieddebian/changelog (+1089/-0)
debian/control (+4/-4)
debian/patches/VERSION.patch (+2/-2)
debian/rules (+4/-2)
debian/samba-common-bin.install (+1/-0)
debian/samba-common.config (+4/-4)
debian/smb.conf (+15/-9)
debian/source_samba.py (+170/-0)
Changed in samba (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in samba (Debian): | |
status: | Unknown → New |
Changed in samba (Debian): | |
status: | New → Fix Committed |
Changed in samba (Debian): | |
status: | Fix Committed → Fix Released |
Ignore the attached modified conffile - I'm reporting this from a different system to the one I've fixed this on.