Jérémie Corbier <jeremie+deb...@famille-corbier.net> writes:

> Lintian complains that my init scripts do not test whether
> /etc/default/wide-dhcpv6-* are available.  Actually, they do but the
> lintian test is too simple to catch that:

> --- 8< ---
> if [ ! -f /etc/default/wide-dhcpv6-relay ]; then
>         log_failure_msg \
>             "/etc/default/wide-dhcpv6-relay does not exist! - Aborting..."
>         log_failure_msg \
>             "Run 'dpkg-reconfigure wide-dhcpv6-relay' to solve the problem."
>         exit 1
> else
>         . /etc/default/wide-dhcpv6-relay
> fi
> --- 8< ---

> It would be nice if this test could be a little smarter since its
> severity is serious.

Indeed, thanks.  Will be fixed in the next release.

I would not recommend against doing what you do above, however.  If that
package is removed but not purged, it's going to produce an annoying error
message on every boot, which isn't normally how removed but not purged
daemon packages should behave.  It's typical (see Policy 9.3.2) to just
exit silently when the /etc/default file is not present.

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to