Package spampd
Tags 366362 + moreinfo unreproducible

Laurent Bigonville wrote on 08/05/2006 01:06:
> Package: spampd
> Severity: grave
> Version: 2.30-3
> 
> The postinstall script failed because STARTSPAMPD=0.
> 
> Paramétrage de spampd (2.30-3) ...
> Starting spam checking proxy daemon: spampd (disabled in /etc/default/spampd).
> invoke-rc.d: initscript spampd, action "start" failed.
> dpkg : erreur de traitement de spampd (--configure) :
>  le sous-processus post-installation script a retourné une erreur de sortie 
> d'état 6
> Des erreurs ont été rencontrées pendant l'exécution :
>  spampd
> E: Sub-process /usr/bin/dpkg returned an error code (1)

This is odd.
This is how the postinst script should look like:

--------------------- cut here -----------------------------
#!/bin/sh -e

case "$1" in
        configure|install|upgrade)
                adduser --system --group \
                        --no-create-home --home /nonexistent \
                        --quiet spampd
                ;;
        *)
                ;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/spampd" ]; then
        update-rc.d spampd defaults >/dev/null
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d spampd start || exit 0
        else
                /etc/init.d/spampd start || exit 0
        fi
fi
# End automatically added section
--------------------- cut here -----------------------------

As you see, the invoke-rc.d result is somewhat ignored (well, the script
exits cleanly when invoke-rc.d returned an error) by appending "|| exit
0". Therefore, dpkg shouldn't return an error during configuration.
Could you please send me your /var/lib/dpkg/info/spampd.postinst?

Regards,
Sven


Reply via email to