Bug#92589: there is no standard way to check if an init script is installed
>>"Jean-Philippe" == Jean-Philippe Guérard <firstname.lastname@example.org> writes:
Jean-Philippe> The Debian policy specifies (10.3.1) that maintainer
Jean-Philippe> scripts should not assume whether or not a specific
Jean-Philippe> implementation of the handling of init scripts is
Jean-Philippe> It provides a tool, update-rc.d, that has to be used
Jean-Philippe> to install or remove an init script activation.
No. Debian policy does not offer tools. It documents a tool
used in current practice that is used to install or remove an init
Jean-Philippe> However, it does not provide a standard way to check
Jean-Philippe> the current status of an init script.
As I said, policy does not provide tools.
Jean-Philippe> Administation packages that need to know the situation
Jean-Philippe> of an init script (e.g. webmin-core, ksysv, rcconf,
Jean-Philippe> etc.) have to implement checks for all possible
Jean-Philippe> Most of them assume the symlink scheme is used.
Jean-Philippe> The reasonnable solution would seem to be to offer an
Jean-Philippe> additionnal standard tool :
Jean-Philippe> that would take as a parameter an init script, and provide
Jean-Philippe> information on the current situation of the script.
This is not a valid policy amendment. The correct thing to do
is to write the tool up, and provide it for use by package
developers. And even then, it should not be mandated by policy --
it may be useful to include in the developers reference, and perhaps
integrated into the various helper packages, but there is nothing
wrong with individual developers retaining the checks that they have
written, as long as the checks are correct.
As written, I object to this propoosal on the grounds that
this is not a policy issue.
"Far better it is to dare mighty things, to win glorious triumphs,
even though checkered by failure, than to take rank with those poor
spirits who neither enjoy much nor suffer much, because they live in
the gray twilight that knows not victory or defeat." Theodore
Manoj Srivastava <email@example.com> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C