[Pkg-sysvinit-devel] Bug#606505: Bug#606505: sysv-rc: update-rc.d(8) gives bad example for disabling a service
kel at otaku42.de
kel at otaku42.de
Thu Dec 9 23:23:50 UTC 2010
Hi Sven,
> Package: sysv-rc
> Version: 2.88dsf-13
> Severity: normal
>
> The EXAMPLES section of update-rc.d.8 recommends this method to disable
> a service:
>
> ,----
> | Example of disabling a service:
> | update-rc.d -f foobar remove
> | update-rc.d foobar stop 20 2 3 4 5 .
> `----
>
> This does not work in a dependency based boot system, because
> update-rc.d ignores the arguments in last line and uses the values from
> the LSB headers instead.
>
> Here is a patch for that:
>
> --8<---------------cut here---------------start------------->8---
> --- update-rc.d.8 (revision 1950)
> +++ update-rc.d.8 (working copy)
> @@ -284,8 +284,7 @@
> .fi
> Example of disabling a service:
> .nf
> -.B " update\-rc.d \-f foobar remove"
> -.B " update\-rc.d foobar stop 20 2 3 4 5 ."
> +.B " update\-rc.d foobar disable"
> .fi
> Example of a command for installing a system
> initialization\-and\-shutdown script:
> .nf
> --8<---------------cut here---------------end--------------->8---
The 'enable/disable' API is considered to be unstable by other developers
and therefore was not well advertised nor documented when it was
integrated.
I agree with the patch but will let others decide and further discuss what
makes the enable/disable feature worth hiding for longer.
Thanks, Kel.
More information about the Pkg-sysvinit-devel
mailing list