Package: maradns
Version: 1.2.07.5-1
Severity: important

If maradns is not running, stopping via initscript returns 1:

# ps aux | grep [m]aradns
# /etc/init.d/maradns stop
Stopping maradns:
# echo $?
1

This might result in a broken upgrade (as in my case):

# apt-get upgrade
[...]
Preparing to replace maradns 1.2.07.5-1 (using .../maradns_1.2.07.6-1_i386.deb) 
...
Stopping maradns: invoke-rc.d: initscript maradns, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping maradns: invoke-rc.d: initscript maradns, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/maradns_1.2.07.6-1_i386.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1

Use of:

  invoke-rc.d maradns stop || true

instead of:

  invoke-rc.d maradns stop || exit $?

in the prerm script should fix the problem.

regards,
-mika-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to