[SRU] amavis start-stop script fails to stop amavisd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
amavisd-new (Debian) |
Fix Released
|
Unknown
|
|||
amavisd-new (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Precise |
Fix Released
|
High
|
James Page | ||
Quantal |
Fix Released
|
High
|
James Page |
Bug Description
[Impact]
sudo service amavis restart completely fails to restart the amavis daemon.
[Development Fix]
Drop use of --name flag with start-stop-daemon as this is surplus to requirements and is the root cause of this issue. This was applied in Debian in revision 1:2.7.0-1
[Stable Fix]
Cherry pick same changes to init script from latest version.
[Test Case]
Running the unfixed version of the package
1) sudo apt-get install amavisd-new
2) sudo service amavis restart
3) Observe
Stopping amavisd: (not running).
Starting amavisd: The amavisd daemon is already running, PID: [{xxx}] (failed).
With the version of the package in -proposed step 2/3 should not fail.
[Regression Potential]
Minimal - very isolated change in init script which only impacts this package.
[Original Bug Report]
On Ubuntu 12.04 Precise Pangolin using amavisd-new 2.6.5-0ubuntu3 the amavis start-stop script fails to stop the daemon.
What occurs is the following:
sudo service amavis restart
Stopping amavisd: (not running).
Starting amavisd: The amavisd daemon is already running, PID: [{xxx}] (failed).
The installer script for amavisd-new has some errors as well probably related(?).
Apparently this behavior has been reported for Debian:
http://
Related branches
Changed in amavisd-new (Debian): | |
status: | Unknown → Fix Released |
tags: | added: rls-p-tracking |
Changed in amavisd-new (Ubuntu): | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
Changed in amavisd-new (Ubuntu): | |
assignee: | Clint Byrum (clint-fewbar) → James Page (james-page) |
Changed in amavisd-new (Ubuntu Quantal): | |
status: | Confirmed → Fix Released |
Changed in amavisd-new (Ubuntu Precise): | |
importance: | Undecided → High |
assignee: | nobody → James Page (james-page) |
status: | New → In Progress |
summary: |
- amavis start-stop script fails to stop amavisd + [SRU] amavis start-stop script fails to stop amavisd |
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in amavisd-new (Ubuntu Precise): | |
milestone: | none → ubuntu-12.04.1 |
An easy fix:
In /etc/init.d/amavis:
replace the line
STOP="--stop --quiet --pidfile $PIDFILE --name ${DAEMONNAME}"
with
STOP="--stop --quiet --pidfile $PIDFILE"