On Tue, Jan 30, 2001 at 03:22:05PM +0000, Andrew Stribblehill wrote:
> Quoting Klaus Reimer <firstname.lastname@example.org>:
> > Are all init.d-scripts in Debian written in that way? Checking if the binary
> > exists and exiting if not?
> I think it's policy that /etc/init.d/* are all conffiles, so yes.
> Rationale: Suppose someone does a dpkg --remove so the conffiles
> stay, but the binaries go. The init scripts should thus always
> check for the existence of the full package, and in practice the
> easiest way is to say something like:
> test -x $PROG || exit 0
As I recall, a lot of people (myself included) felt that using test -e or -f
was more appropriate, as using -x encouraged users to chmod -x the binary to
turn off the service (which is not what is intended, and will break on