← Back to team overview

enterprise-support team mailing list archive

[Bug 1760855] [NEW] logrotate rules do not allow for samba being disabled.

 

Public bug reported:

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

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


** Tags: amd64 apport-bug artful

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1760855

Title:
  logrotate rules do not allow for samba being disabled.

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


Follow ups