Re: Bug#225465: debian-policy: packages must give choice to notstart at boot, via debconf
In article <email@example.com>,
John Hasler <firstname.lastname@example.org> wrote:
>> . /etc/default/package # this contains "RUN_package_AT_BOOT"
>> test -z "$RUN_package_AT_BOOT" && echo $0 | grep -q '^S' && exit 0
>> hmm I try also try this example but failed to me
>It should read:
>test -z "$RUN_package_AT_BOOT" && echo $(basename $0) | grep -q '^S' && exit 0
>It was just an untested example fragment. The idea is to check to see if
>the script is being called via one of the sysvinit 'S' symlinks. This lets
>you call '/etc/init.d/$PACKAGE' from the command line even if
>/etc/default/package is set to prevent startup at boot. It doesn't fix the
>problem of daemons being started on reinstallation, though.
It also doesn't work with file-rc, so it is fundamentally broken.