[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#225465: debian-policy: packages must give choice to notstart at boot, via debconf



In article <[🔎] 87ekugsplm.fsf@toncho.dhh.gt.org>,
John Hasler  <john@dhh.gt.org> wrote:
>I wrote:
>> Try:
>> . /etc/default/package # this contains "RUN_package_AT_BOOT" 
>> test -z "$RUN_package_AT_BOOT" && echo $0 | grep -q '^S' && exit 0
>
>Joel writes:
>> 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.

Mike.



Reply to: