Samba logrotate script uses invalid argument to /etc/init.d/nmdb
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | One Hundred Papercuts |
Medium
|
Unassigned | ||
| | samba (Ubuntu) |
Medium
|
Unassigned | ||
| | Wily |
Medium
|
Unassigned | ||
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.
Usage: /etc/init.d/nmbd {start|
error: error running non-shared postrotate script for /var/log/
run-parts: /etc/cron.
On further investigation I found that the problem lies in the /etc/logrotate.
/var/log/
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+
ProcVersionSign
Uname: Linux 3.16.0-23-generic x86_64
NonfreeKernelMo
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
SambaServerRegr
SmbConfIncluded: No
SourcePackage: samba
UpgradeStatus: Upgraded to utopic on 2014-10-18 (8 days ago)
| Josh Holland (jshholland) wrote : | #1 |
| Changed in hundredpapercuts: | |
| status: | New → Confirmed |
| Changed in samba (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in hundredpapercuts: | |
| importance: | Undecided → Medium |
It's still there in Vivid...
| jimav (james-avera) wrote : | #4 |
Also confirm it's happening on vivid (15.04) - get an email from Anacron cron.daily after rebooting.
| GuyR (guy-rouger) wrote : | #5 |
Same problem in Xubuntu 15.04
/etc/cron.
Usage: /etc/init.d/nmbd {start|
error: error running non-shared postrotate script for /var/log/
run-parts: /etc/cron.
| Simon Arlott (sa.me.uk) wrote : | #6 |
This can be fixed in the debian/
The attachment "0001-Use-
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| elatllat (elatllat) wrote : | #8 |
Ubuntu seems more sloppy and ess responsive than debian... maybe it's time they accepted more community help.
| Robie Basak (racb) wrote : | #9 |
@elatllat
We'd love more community help! Please see https:/
Thanks again for volunteering!
| tags: |
added: vivid wiley removed: utopic |
| tags: |
added: wily removed: wiley |
| Sebastien Bacher (seb128) wrote : | #10 |
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:/
| description: | updated |
| Launchpad Janitor (janitor) wrote : | #11 |
This bug was fixed in the package samba - 2:4.1.20+
---------------
samba (2:4.1.
* debian/
- revert to Debian version of the logrotate reload command, fix an
invalid syntax introduced in the upstart->systemd transition
(lp: #1385868)
-- Sebastien Bacher <email address hidden> Tue, 10 Nov 2015 19:01:06 +0100
| Changed in samba (Ubuntu): | |
| status: | Confirmed → Fix Released |
Hello Josh, or anyone else affected,
Accepted samba into wily-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in samba (Ubuntu Wily): | |
| importance: | Undecided → Medium |
| status: | New → Fix Committed |
| tags: | added: verification-needed |
| Sebastien Bacher (seb128) wrote : | #13 |
seems to done the job
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #14 |
This bug was fixed in the package samba - 2:4.1.17+
---------------
samba (2:4.1.
* debian/
- revert to Debian version of the logrotate reload command, fix an
invalid syntax introduced in the upstart->systemd transition
(lp: #1385868)
-- Sebastien Bacher <email address hidden> Tue, 10 Nov 2015 19:04:30 +0100
| Changed in samba (Ubuntu Wily): | |
| status: | Fix Committed → Fix Released |
| Chris J Arges (arges) wrote : Update Released | #15 |
The verification of the Stable Release Update for samba has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.


Status changed to 'Confirmed' because the bug affects multiple users.