LPRng /etc/init.d problems (Was: Re: Feaping Creature-ism in core Debian Packages)
> > Perl may or may not be inevitable, but what about this in
> > /etc/init.d/lprng?
> >
> > test -f $DAEMON -a -d /usr/doc/lprng || exit 0
> >
> > Why should the operation of a daemon depend on its
> > documentation?
>
> This is for proper compatibility with lpr. There can be a case when lprng
> is removed, but the conffiles (in this case, the init script) stay. As both
> lprng and lpr provide a /usr/sbin/lpd binary, an extra check is neccessary.
> If you have a better suggestion, please let me and the lprng maintainer
> know.
At least for the slink versions, the following should work:
For /etc/init.d/lpr:
test -f /usr/sbin/pac || exit 0
For /etc/init.d/lprng:
test -f /usr/sbin/lpbanner || exit 0
I don't know enough about these two packages to be certain that this
is a good, long-term solution, but it certainly distinguishes the
slink versions without looking at /usr/(share/)doc.
Julian
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Reply to: