Tâche #17042
Scénario #16962: Traitement express MEN (36-38)
EOLE 2.6.0 : l'agent Zéphir est relancé toute les 10mn par cron.
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Remaining (hours):
0.0
Description
Il serait opportun de supprimer le cron et demander à systend de le relancer.
Associated revisions
utiliser systemctl plutôt que la commande service (ref #17042 @1h)
History
#1 Updated by Emmanuel GARETTE about 7 years ago
++ CreoleGet module_instancie + is_inst=oui + '[' oui = non ']' + /usr/bin/enregistrement_zephir --check root@scribe:~/pouet/zend# cat /tmp/pouet.txt ++ CreoleGet module_instancie + is_inst=oui + '[' oui = non ']' + /usr/bin/enregistrement_zephir --check + '[' 0 -eq 0 ']' + service z_stats status + '[' 127 '!=' 0 ']' + . /usr/lib/eole/zephir.sh ++ ProgZephir=/usr/share/zephir/scripts + CreoleLock is_locked --level=system + '[' 1 -ne 0 ']' + CreoleService z_stats restart root@scribe:~/pouet/zend# cat /tmp/pouet.txt ++ CreoleGet module_instancie + is_inst=oui + '[' oui = non ']' + /usr/bin/enregistrement_zephir --check + '[' 0 -eq 0 ']' + service z_stats status + '[' 127 '!=' 0 ']' + . /usr/lib/eole/zephir.sh ++ ProgZephir=/usr/share/zephir/scripts + CreoleLock is_locked --level=system + '[' 1 -ne 0 ']' + CreoleService z_stats restart Restart Systemd service z_stats [ OK ] + Zephir MSG 'Service z_stats arreté : redémarrage' ZEPHIR + /usr/share/zephir/scripts/Zephir.py MSG 'Service z_stats arreté : redémarrage' ZEPHIR Traceback (most recent call last): File "/usr/lib/python2.7/logging/handlers.py", line 845, in emit msg = self.format(record) + '\000' File "/usr/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/usr/lib/python2.7/logging/__init__.py", line 476, in format raise e UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 37: ordinal not in range(128) Logged from file fonctionseole.py, line 182 + exit 0 root@scribe:~/pouet/zend#
#2 Updated by Emmanuel GARETTE about 7 years ago
La commande "service z_stats status" renvoi le code retour 127 lorsqu'il est exécuté dans cron.
#3 Updated by Scrum Master about 7 years ago
- Status changed from Nouveau to En cours
#4 Updated by Scrum Master about 7 years ago
- Assigned To set to Emmanuel GARETTE
#5 Updated by Emmanuel GARETTE about 7 years ago
- Remaining (hours) changed from 1.0 to 0.25
#6 Updated by Scrum Master about 7 years ago
- Status changed from En cours to Résolu
#7 Updated by Daniel Dehennin about 7 years ago
- % Done changed from 0 to 100
#8 Updated by Fabrice Barconnière about 7 years ago
- Remaining (hours) changed from 0.25 to 0.0
OK, le cron fait son travail. Il relance z_stats, même si on l'arrête volontairement.
Systemd fait aussi ce travail, mais seulement en cas d'arrêt anormal.
#9 Updated by Fabrice Barconnière about 7 years ago
- Status changed from Résolu to Fermé