Samba logrotate script uses invalid argument to /etc/init.d/nmdb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Confirmed
|
Medium
|
Unassigned | ||
samba (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
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)
Changed in hundredpapercuts: | |
status: | New → Confirmed |
Changed in samba (Ubuntu): | |
importance: | Undecided → Medium |
Changed in hundredpapercuts: | |
importance: | Undecided → Medium |
tags: |
added: vivid wiley removed: utopic |
tags: |
added: wily removed: wiley |
Status changed to 'Confirmed' because the bug affects multiple users.