Quoting Klaus Reimer <email@example.com>:
> 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
case "$1" in