Tâche #19917
Scénario #19802: La restauration d'un module amon 2.6.1 a besoin d'un redémarrage de creoled
Modifier le ou les scripts afin que creoled soit redémarré si besoin
Remaining (hours):
0.0
Related issues
Associated revisions
Reload creoled with CreoleGet
Since creoled is not automatically restarted upon any changes to
python libraries and not reloaded upon changes to Creole
dictionnaries, we need a simple way to reload creoled configuration
without restarting it.
We add two new options to reload the full configuration (“--reload”)
or just values (“--reload-eol”).
- bin/CreoleGet: Manage “--group”, “--list”, “--reload” and
“--reload-eol” as mutualy exclusive options.
(main): Simplify if/elif chain. Add “--reload” and “--reload-eol”
handling.
- fr.man8/CreoleGet.8: Update man page.
Ref: #19917
Reload creoled after any package manipulation
- apt/apt-eole.conf: Add a “Post-Invoke” to reload creoled if it's
active after all dpkg actions are done.
Ref: #19917
History
#1 Updated by Daniel Dehennin over 6 years ago
Nous pouvons fournir une configuration dpkg:
DPkg { Post-Invoke {"service creoled restart";}; }
#2 Updated by Daniel Dehennin over 6 years ago
- Status changed from Nouveau to En cours
- Assigned To set to Daniel Dehennin
#3 Updated by Daniel Dehennin over 6 years ago
- % Done changed from 0 to 10
#4 Updated by Daniel Dehennin over 6 years ago
- % Done changed from 10 to 100
- Remaining (hours) changed from 4.0 to 0.25
#5 Updated by Scrum Master over 6 years ago
- Status changed from En cours to Résolu
#6 Updated by Fabrice Barconnière over 6 years ago
- Remaining (hours) changed from 0.25 to 0.0
#7 Updated by Fabrice Barconnière over 6 years ago
D'après ce qu'on voit, apt-eole fait bien un reload_config après l'installation d'un paquet :
root@scribe:~# apt-eole install eole-ead3 Action install pour root Lecture des listes de paquets… Construction de l'arbre des dépendances… Lecture des informations d'état… Les paquets suivants seront mis à jour : eole-ead3 1 mis à jour, 0 nouvellement installés, 0 à enlever et 10 non mis à jour. Il est nécessaire de prendre 1 002 ko dans les archives. Après cette opération, 0 o d'espace disque supplémentaires seront utilisés. Réception de:1 http://test-eole.ac-dijon.fr/eole eole-2.6.1-proposed-updates/main amd64 eole-ead3 all 2.6.1-55 [1 002 kB] 1 002 ko réceptionnés en 0s (24,9 Mo/s) (Lecture de la base de données... 162772 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../eole-ead3_2.6.1-55_all.deb ... Dépaquetage de eole-ead3 (2.6.1-55) sur (2.6.1-54) ... Paramétrage de eole-ead3 (2.6.1-55) ... root@scribe:~# date jeudi 6 avril 2017, 14:58:33 (UTC+0200) root@scribe:~# tail -1 /var/log/rsyslog/local/creoled/creoled.info.log 2017-04-06T14:58:30.128927+02:00 scribe.etb1.lan creoled[3636]: 127.0.0.1 - - [06/Apr/2017:14:58:30] "GET /reload_config HTTP/1.1" 200 31 "" "restkit/4.2.2"
#8 Updated by Fabrice Barconnière over 6 years ago
La man page évoque bien les nouvelles options.
#9 Updated by Fabrice Barconnière over 6 years ago
- Status changed from Résolu to Fermé
#10 Updated by Gilles Grandgérard over 6 years ago
- Start date changed from 01/27/2017 to 04/04/2017
#11 Updated by Daniel Dehennin over 6 years ago
- Related to Tâche #19519: Plantage Maj-Auto sur AmonEcole sur TimeoutCreoleClientError added
#12 Updated by Joël Cuissinat almost 6 years ago
- Related to Proposition Scénario #12885: Le manuel de CreoleGet devrait être à jour added