Problème insserv /etc/init.d

Bonjour !

Je me tourne vers vous car je rencontre des soucis au niveau de mes scripts présents dans

Pour vous situez, je tourne sur :

Où j’y ai installé un Nagios.

Lorsque je fais un update de mes scripts à l’aide de la commande :

Il me retourne :

[quote]
update-rc.d: using dependency based boot sequencing
insserv: warning: script ‘K02ndo2db’ missing LSB tags and overrides
insserv: warning: script ‘S99nagios’ missing LSB tags and overrides
insserv: warning: script ‘ndo2db’ missing LSB tags and overrides
insserv: warning: script ‘nagios’ missing LSB tags and overrides
insserv: There is a loop at service rmnologin if started
insserv: There is a loop between service rmnologin and checkroot if started
insserv: loop involving service checkroot at depth 3
insserv: loop involving service keyboard-setup at depth 2
insserv: loop involving service hwclock at depth 5
insserv: loop involving service bootlogd at depth 3

insserv: Max recursions depth 99 reached
insserv: loop involving service nagios at depth 9
insserv: Starting ndo2db depends on rmnologin and therefore on system facility $all' which can not be true! insserv: There is a loop between service rmnologin and mountnfs if started insserv: loop involving service mountnfs at depth 8 insserv: loop involving service networking at depth 7 insserv: There is a loop between service rmnologin and mountall-bootclean if started insserv: loop involving service mountall-bootclean at depth 7 insserv: loop involving service mountall at depth 6 insserv: loop involving service checkfs at depth 5 insserv: There is a loop between service rmnologin and ifupdown-clean if started insserv: loop involving service ifupdown-clean at depth 5 insserv: There is a loop at service ndo2db.old if started insserv: loop involving service mountoverflowtmp at depth 9 insserv: There is a loop between service ndo2db.old and mtab if started insserv: loop involving service mtab at depth 5 insserv: Starting ndo2db depends on rmnologin and therefore on system facility$all’ which can not be true!
insserv: There is a loop between service rmnologin and mountoverflowtmp if started
insserv: Starting ndo2db depends on rmnologin and therefore on system facility $all' which can not be true! insserv: loop involving service mountnfs-bootclean at depth 12 insserv: Starting ndo2db depends on rmnologin and therefore on system facility$all’ which can not be true!
insserv: Starting ndo2db depends on rmnologin and therefore on system facility `$all’ which can not be true![/quote]

Si j’ai bien compris, il m’indique des warnings car il cherche des :

J’ai donc recherché sur le net et certains disent qu’il faut ajouter ces lignes en entête :

### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

J’ai ajouté pour :

Et la mise à jour à l’air de s’effectuer car je n’ai plus de message d’erreur pour lui.

Je recommence pour “nagios” et là il met:

update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (2 S) of script `nagios' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (empty) of script `nagios' overwrites defaults (0 1 6).

Par contre là, je ne vois pas du tout quoi faire !

Pour information, mon niveau de lancement par défaut :

# The default runlevel. id:2:initdefault:

Et voici ce qui se trouve dans:

README         S02nrpe     S04mysql               S04postgresql  S05exim4     S19rmnologin
S01fancontrol  S03apache2  S04nagios-nrpe-server  S04snmpd       S06bootlogs  S19stop-bootlogd
S01rsyslog     S04acpid    S04ndo2db              S04snmptt      S18nagios
S01sudo        S04cron     S04ntp                 S04ssh         S19rc.local

Auriez-vous des idées !? :slightly_smiling:

Cordialement, Benjamin.