Project

General

Profile

Anomalie #7788

CreoleService affiche les conteneurs même si pas de conteneur

Added by Fabrice Barconnière over 9 years ago. Updated over 9 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
03/31/2014
Due date:
04/04/2014
% Done:

100%

Estimated time:
2.00 h
Spent time:
Distribution:
EOLE 2.4

Description

CreoleService affiche les conteneurs même si pas de conteneur

Associated revisions

Revision 1babb7ad (diff)
Added by Daniel Dehennin over 9 years ago

CreoleService affiche toujours le nom des conteneurs

Il est inutile d’afficher le nom des conteneurs où la commande s’exécute
lorsque le mode conteneur n’est pas actif.

  • pyeole/service/launcher.py (_in_container): Retourne une chaîne de
    caractère utilisable par les fonctions de log en fonction de
    l’activation du mode conteneur.
    (Command.check_service): Utilisation de « _in_container() » à la place
    d’une chaîne de format statique.
    (Command.configure_service): Idem.
    (Command.apply_service): Idem.
    (Command.enable_service): Idem.
    (Command.disable_service): Idem.
    (Command.status_service): Idem.
    (Command.start_service): Idem.
    (Command.stop_service): Idem.
    (Command.restart_service): Idem.
    (Command.reload_service): Idem.

Fixes: #7788 @15m

History

#1 Updated by Fabrice Barconnière over 9 years ago

root@amon24-zephir:~# CreoleService bind9 restart
Restart System V service bind9 in internet
Stop System V service bind9 in internet                                                                                                                                                                                     [  OK  ]
Start System V service bind9 in internet                                                                                                                                                                                    [  OK  ]

#2 Updated by Daniel Dehennin over 9 years ago

  • Status changed from Nouveau to Accepté
  • Assigned To set to Daniel Dehennin
  • Start date set to 03/31/2014

#3 Updated by Daniel Dehennin over 9 years ago

  • Status changed from Accepté to En attente d'informations
  • Assigned To changed from Daniel Dehennin to Joël Cuissinat

J’ai un patch qui donne le résultat suivant en mode non conteneur :

root@horus:~# CreoleService exim4 restart
Restart System V service exim4
Stop System V service exim4                                    [  OK  ]
Start System V service exim4                                   [  OK  ]
root@horus:~# CreoleService exim4 status
Service exim4 is running

En mode conteneur le résultat est le même que dans la description de la demande.

Joël, tu dis que ça mérite discussion, je patch est donc en attente d’information de ta part, redonne moi la demande lorsque la discussion sera finie.

#4 Updated by Daniel Dehennin over 9 years ago

  • Status changed from En attente d'informations to Accepté
  • Assigned To changed from Joël Cuissinat to Daniel Dehennin

Joël est OK avec mon patch.

#5 Updated by Daniel Dehennin over 9 years ago

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

#6 Updated by Daniel Dehennin over 9 years ago

  • Project changed from creole to python-pyeole

#7 Updated by Joël Cuissinat over 9 years ago

  • Status changed from Résolu to Fermé

OK (en mode non conteneur) avec le paquet : python-pyeole 2.4.0-119

Also available in: Atom PDF