Re: Bug#475626: nss-ldapd init script sequence number
[Arthur de Jong]
> However to solve the problem that nslcd should be started before mail
> servers I would like to add:
> Provides: $named
> at least exim and postfix have a Required-Start for this) but the
> description on http://wiki.debian.org/LSBInitScripts suggests that
> such a provides should be specified in a different place. Where
> should that be?
I suspect you instead should use
X-Start-Before: exim4 postfix
to make sure nslcd start before these.
> This would however change local customisations that administrators
> may have made to their init script order.
Yes, that is correct. This is why I propose to extend the update-rc.d
interface to allow changes without having to throw away local
> Something like this could do it though in postinst:
> [ -l /etc/rc2.d/S20nslcd ] &&
> mv /etc/rc2.d/S20nslcd /etc/rc2.d/S19nslcd
> [ -l /etc/rc3.d/S20nslcd ] &&
This do not work with file-rc. You have to use the interface provided
by update-rc.d to work with both sysv-rc and file-rc. This only allow
complete removal and insertion. :/
> I suspect not much packages do this when changing sequence number. e.g.
> I have an etch system which has been upgraded a lot of times that starts
> nscd at sequence 19 but my sid system that has been installed about a
> year ago starts it at 20.