[Russ Allbery]
> Although I suppose they might be able to make use of the overrides
> directory instead.  I'm not sure how that works or if packages are
> allowed to install overrides for themselves.

One way to do this would be to add a file like this to put krb5-kdc
behind slapd during boot:

r...@tjener:~# cat /etc/insserv/overrides/krb5-kdc
### BEGIN INIT INFO
# Provides:             krb5-kdc
# Required-Start:       $local_fs $remote_fs $network $syslog
# Required-Stop:        $local_fs $remote_fs $network $syslog
# Should-Start:         slapd
# Should-Stop:          slapd
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
### END INIT INFO
r...@tjener:~#

The change from the one in the current init.d script is to add
should-start and should-stop to the header.

The /usr/share/insserv/overrides/ directory can not be used, as its
override files only take effect if the /etc/init.d/krb5-kdc script is
missing headers, which it is not.

Perhaps the /etc/insserv/overrides/krb5-kdc file should be part of the
krb5-kdc-ldap package?

I do not see a reason why a package should not be allowed to create an
override file if it want to. :)

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to