[Pkg-utopia-maintainers] Bug#396811: prerm script calls
/etc/init.d/avahi-daemon directly
Trent Buck
trentbuck at gmail.com
Fri Nov 3 04:01:45 CET 2006
Package: avahi-daemon
Version: 0.6.14-2
Severity: important
>From the policy manual:
Maintainers should use the abstraction layer provided by the
update-rc.d and invoke-rc.d programs to deal with initscripts in
their packages' scripts such as postinst, prerm and postrm.
http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3
The script /var/lib/dpkg/info/avahi-daemon.prerm contains
if [ "$1" = "remove" ]; then
/etc/init.d/avahi-daemon stop || true
fi
It should instead read
if [ "$1" = "remove" ]; then
invoke-rc.d avahi-daemon stop || true
fi
This change allows sysadmins to use the policy-rc.d mechanism to
change postrm behaviour, which is particularly useful in chroots (to
prevent daemons being stopped or started).
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
More information about the Pkg-utopia-maintainers
mailing list