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

Sebastien Bacher seb128 at ubuntu.com
Tue Nov 10 18:07:09 UTC 2015


Thanks, indeed that's an issue introduced when switching away from
upstart, I've changed the package back to use the Debian version of the
script, which works, and forwarded them your suggested change on
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804705

** Bug watch added: Debian Bug tracker #804705
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804705

** Description changed:

+ * Impact
+ the logrotate script uses an invalid reload syntax
+ 
+ * Test case
+ install samba, rotate the log, look at errors emails
+ 
+ * Impact
+ the command used now is the debian one, it should work, still check it reloads the service as it should
+ 
+ 
+ --------------------
+ 
  I received the following in an email from Anacron:
  
  /etc/cron.daily/logrotate:
  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 {
- 	weekly
- 	missingok
- 	rotate 7
- 	postrotate
- 		service nmbd reload 2>/dev/null
- 	endscript
- 	compress
- 	notifempty
+  weekly
+  missingok
+  rotate 7
+  postrotate
+   service nmbd reload 2>/dev/null
+  endscript
+  compress
+  notifempty
  }
  
  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)

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1385868

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

Status in One Hundred Papercuts:
  Confirmed
Status in samba package in Ubuntu:
  Confirmed

Bug description:
  * Impact
  the logrotate script uses an invalid reload syntax

  * Test case
  install samba, rotate the log, look at errors emails

  * Impact
  the command used now is the debian one, it should work, still check it reloads the service as it should

  
  --------------------

  I received the following in an email from Anacron:

  /etc/cron.daily/logrotate:
  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 {
   weekly
   missingok
   rotate 7
   postrotate
    service nmbd reload 2>/dev/null
   endscript
   compress
   notifempty
  }

  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1385868/+subscriptions



More information about the Ubuntu-sponsors mailing list