Your message dated Sun, 31 Jan 2016 01:35:59 +0100
with message-id <[email protected]>
and subject line Re: Bug#667464: /usr/sbin/update-rc.d: update-rc.d ignores 
sequence number parameter
has caused the Debian Bug report #667464,
regarding update-rc.d: update-rc.d ignores sequence number parameter
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
667464: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667464
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.88dsf-22.1
Severity: important
File: /usr/sbin/update-rc.d

update-rc.d currently ignores the sequence number parameter which
gives the digits in the start and kill links in the rc*.d dirs. This
is actually important since some init.d scripts need to be started
before others, so you need these params.


For example, I've written an init.d script that I want to
start before another service gets started. I want it to have the start
index 20. It also should not be stopped before certain other
services are stopped, so I want it to have a stop index of
02. However:

howlingfantods:~# update-rc.d -n iptrafvol start 20 2 3 4 5 . stop 02 0
1 6 .
update-rc.d: using dependency based boot sequencing
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc0.d/K01iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc1.d/K01iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc2.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc3.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc4.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc5.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc6.d/K01iptrafvol
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop

update-rc.d ignores the params 20 and 02 and installs them with the
default indices of 23 and 01 (this is dry run output, but I also ran
them really and it set the links just like in the dry run). I know my
syntax is correct because I've used it before and because there's the
following example in the man page:

update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .


It also does this if using the default runlevels:

howlingfantods:~# update-rc.d -n iptrafvol defaults 20 02
update-rc.d: using dependency based boot sequencing
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc0.d/K01iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc1.d/K01iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc2.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc3.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc4.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc5.d/S23iptrafvol
insserv: enable service ../init.d/iptrafvol ->
/etc/init.d/../rc6.d/K01iptrafvol
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop


Again, there's a corresponding example in the man page for this syntax:

Insert links at default runlevels when B requires A
          update-rc.d script_for_A defaults 80 20
          update-rc.d script_for_B defaults 90 10


so something's broken.


cheers,

-j





-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=locale: Cannot set
LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysv-rc depends on:
ii  debconf [debconf-2.0]  1.5.41
ii  insserv                1.14.0-2.1
ii  sysvinit-utils         2.88dsf-13.13

Versions of packages sysv-rc recommends:
ii  lsb-base  3.2-28

Versions of packages sysv-rc suggests:
pn  bum           <none>
pn  sysv-rc-conf  <none>

-- debconf-show failed



--- End Message ---
--- Begin Message ---
On Tue, 19 Jan 2016 00:30:08 +0100 Michael Biebl <[email protected]> wrote:
> Control: tags -1 + moreinfo
> 
> On Wed, 04 Apr 2012 12:48:03 +0200 josh <[email protected]> wrote:
> > Thanks very much for that quick and very helpful reply! If that's the
> > case, then just the man page needs to be updated appropriately. It's
> > very irritating to have documented options be completely ignored, since
> > you waste time wondering why the heck it's not working.
> > 
> 
> Can you be more specific, which man page and what parts exactly need to
> be updated?

I've looked over the update-rc.d man page and I don't see the sequence
parameter documented anymore.
I'm therefor closing this bug report.

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to