Project

General

Profile

Anomalie #5027

Pb démarrage du service bastion

Added by Samuel LEFOL over 10 years ago. Updated over 10 years ago.

Status:
Fermé
Priority:
Haut
Assigned To:
Category:
-
Start date:
03/11/2013
Due date:
03/15/2013
% Done:

100%

Spent time:
Distribution:
EOLE 2.3

Description

Pb constaté sur version EOLE 2.3 (2.3.8 RC).

Le service bastion ne démarre pas après reboot.

Si on modifie le fichier /etc/network/interfaces comme suit :

post-up /usr/sbin/service rsyslog restart || true
post-up /etc/init.d/bastion restart

le service bastion démarre à tous les coups !
En ajoutant || true,on est sure d’exécuter la 2ème commande.

Extrait du manpage interfaces :

IFACE OPTIONS
The following "command" options are available for every family and
method. Each of these options can be given multiple times in a single
stanza, in which case the commands are executed in the order in which
they appear in the stanza. (You can ensure a command never fails by
suffixing "|| true".)

A savoir pourquoi le redémarrage de rsyslog a été ajouté dans ce fichier ?
S'il est vraiment nécessaire, alors il faudrait corriger le fichier en ajoutant un ligne 'post-up /bin/sleep 5' avant les autres.


Related issues

Related to eole-common - Evolution #4030: Le service rsyslog devrait être géré à part Fermé 09/11/2012
Duplicated by eole-common - Anomalie #5031: Pb démarrage du service bastion Fermé 03/22/2013

Associated revisions

Revision 538c9ce5 (diff)
Added by Fabrice Barconnière over 10 years ago

tmpl/interfaces : restart en post-up de rsyslog par restart-wrapper
fixes #5027 @10m

History

#1 Updated by Karim Ayari over 10 years ago

Je n'avais pas compris que c'était pour Zéphir :)

effectivement je confirme, on a le même pb, le redémarrage du service rsyslog plante
et de ce fait bastion n'est pas relancé.

si on renvoie le résultat de la commande dans un fichier,

/usr/sbin/service rsyslog restart &> /root/log

on retrouve dans ce fichier :

cat /root/log
Unknown instance:

en gros c'est comme si le service n'est pas lancé à ce moment pour pouvoir le redémarré.
mais ce qui est étrange c'est que si on tente de le redémarré à la main il nous dit qu'il est déjà lancé
et la commande ps aux |grep rsyslog renvoie bien un résultat.

#2 Updated by Fabrice Barconnière over 10 years ago

  • Status changed from Nouveau to Accepté
  • Assigned To set to Benjamin Bohard
  • Priority changed from Normal to Haut
  • Target version set to Mises à jour 2.3.8

#3 Updated by Luc Bourdot over 10 years ago

  • Due date set to 03/15/2013
  • Start date set to 03/11/2013

#4 Updated by Fabrice Barconnière over 10 years ago

Correction rapide : tmpl/interfaces : s/\/usr\/sbin\/service rsyslog restart/\/sbin\/restart-wrapper rsyslog/

À réétudier en 2.3.9.

#5 Updated by Fabrice Barconnière over 10 years ago

  • Project changed from Zéphir to eole-common

#6 Updated by Fabrice Barconnière over 10 years ago

  • Status changed from Accepté to Résolu
  • % Done changed from 0 to 100

#7 Updated by Fabrice Barconnière over 10 years ago

  • Status changed from Résolu to Fermé

OK avec version 2.3-eole152~8

Also available in: Atom PDF