Project

General

Profile

Tâche #27570

Scénario #27100: Traitement express MEN (13-15)

Le service eole-lsc ne devrait pas être géré par Creole

Added by Joël Cuissinat over 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
07/02/2018
Due date:
% Done:

0%

Remaining (hours):
0.0

Description

Attention : il est appelé par CreoleService dans certains paquets !


Related issues

Related to Distribution EOLE - Tâche #28281: Correction HORUS-T08-001 - Réplication LDAP "manuelle" - (2.7.1-beta2) Fermé 04/29/2019

Associated revisions

Revision 6dcb16f8 (diff)
Added by Joël Cuissinat over 1 year ago

Add enable/disable functions in utils.sh

Ref: #27570
Ref: #26969

Revision 832d7d1f (diff)
Added by Joël Cuissinat over 1 year ago

Use new functions to manage tftpa-hpa service

Ref: #27570
Ref: #26969

Revision 3556a0a8 (diff)
Added by Joël Cuissinat over 1 year ago

Don't manage eole-lsc with Creole

  • dicos/26_eolead.xml : remove service managing
  • posttemplate/05-eolead : stop and start service

Ref: #27570

Revision 6cf9ca9b (diff)
Added by Joël Cuissinat over 1 year ago

  • eoletools.py : group imports

Ref: #27570

Revision bccc6664 (diff)
Added by Joël Cuissinat over 1 year ago

  • eoletools.py : manage eole-lsc without creole

Ref: #27570

Revision 26816132 (diff)
Added by Joël Cuissinat over 1 year ago

  • aaf.py : manage eole-lsc without creole

Ref: #27570

History

#1 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Nouveau to En cours

#2 Updated by Joël Cuissinat over 1 year ago

eole-ad/sbin/eolelsc:DEFAULT="/etc/default/eole-lsc" 
eole-ad/.git/COMMIT_EDITMSG:         <service servicelist='eolead'>eole-lsc</service>
eole-ad/.git/COMMIT_EDITMSG:         <file filelist='eolead' name='/etc/default/eole-lsc' source='eole-lsc.default'/>
eole-ad/.git/COMMIT_EDITMSG: CreoleService eole-lsc stop
eole-ad/.git/logs/HEAD:9a249b95240de391e83d9fecd7f579aaaf812c4f 4dcc8798ada1ad0566ed96140d96c6d96aa20001 Joël Cuissinat <joel.cuissinat@ac-dijon.fr> 1521475860 +0100    commit: Transformation de debian/eole-ad.eole-lsc.service en lien symbolique
eole-ad/.git/logs/HEAD:6a720bf8050a68aa75e2f80ffed02020c4b0dd86 b791210b10ee808442d2c881c712e3ccc31d5273 Joël Cuissinat <joel.cuissinat@ac-dijon.fr> 1521477617 +0100    commit: Mise à niveau du service eole-lsc
eole-ad/.git/logs/refs/heads/dist/eole/2.6.2/master:9a249b95240de391e83d9fecd7f579aaaf812c4f 4dcc8798ada1ad0566ed96140d96c6d96aa20001 Joël Cuissinat <joel.cuissinat@ac-dijon.fr> 1521475860 +0100    commit: Transformation de debian/eole-ad.eole-lsc.service en lien symbolique
eole-ad/.git/logs/refs/heads/2.6.2/master:6a720bf8050a68aa75e2f80ffed02020c4b0dd86 b791210b10ee808442d2c881c712e3ccc31d5273 Joël Cuissinat <joel.cuissinat@ac-dijon.fr> 1521477617 +0100    commit: Mise à niveau du service eole-lsc
eole-ad/tmpl/eole-lsc.default:# defaults file for eole-lsc service
eole-ad/dicos/26_eolead.xml:        <service servicelist='eolead'>eole-lsc</service>
eole-ad/dicos/26_eolead.xml:        <file filelist='eolead' name='/etc/default/eole-lsc' source='eole-lsc.default'/>
eole-ad/schedule/scripts/eolead:service eole-lsc stop
eole-ad/schedule/scripts/eolead:service eole-lsc start
eole-lsc:# Default file for eole-lsc service
horus-backend/horus/aaf.py:        service_code('eole-lsc', 'stop', 'annuaire')
horus-backend/horus/aaf.py:        service_code('eole-lsc', 'start', 'annuaire')
scribe-backend/scribe/eoletools.py:        service_code('eole-lsc', 'start', 'annuaire')
scribe-backend/scribe/eoletools.py:        service_code('eole-lsc', 'stop', 'annuaire')
zephir-parc/data/dictionnaires/2.7.0/eole/eole-ad/26_eolead.xml:        <service servicelist='eolead'>eole-lsc</service>
zephir-parc/data/dictionnaires/2.7.0/eole/eole-ad/26_eolead.xml:        <file filelist='eolead' name='/etc/default/eole-lsc' source='eole-lsc.default'/>
zephir-parc/data/dictionnaires/2.7.1/eole/eole-ad/26_eolead.xml:        <service servicelist='eolead'>eole-lsc</service>
zephir-parc/data/dictionnaires/2.7.1/eole/eole-ad/26_eolead.xml:        <file filelist='eolead' name='/etc/default/eole-lsc' source='eole-lsc.default'/>
zephir-parc/data/dictionnaires/2.6.2/eole/eole-ad/26_eolead.xml:        <service servicelist='eolead'>eole-lsc</service>
zephir-parc/data/dictionnaires/2.6.2/eole/eole-ad/26_eolead.xml:        <file filelist='eolead' name='/etc/default/eole-lsc' source='eole-lsc.default'/>

Les appels à service_code peuvent être remplacés par :

from pyeole.service import unmanaged_service
unmanaged_service('stop', 'eole-lsc', 'service')
unmanaged_service('start', 'eole-lsc', 'service')

#3 Updated by Joël Cuissinat over 1 year ago

Sinon, on peut estimer que le service est bien activé :

jojo:~/git/eole-ad (dist/eole/2.6.2/master=)$ cat debian/rules 
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
    dh $@ --with systemd

override_dh_systemd_enable:
    dh_systemd_enable -peole-ad --name=eole-lsc

.PHONY: override_dh_systemd_enable

#4 Updated by Joël Cuissinat over 1 year ago

Fusionné en 2.7.1.

Pour la fusion en 2.6.2, il y aura des merge à réaliser dans les projets suivants :
  • scribe-backend
  • horus-backend
  • eole-ad

#5 Updated by Scrum Master over 1 year ago

  • Status changed from En cours to Résolu

#6 Updated by Scrum Master about 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

#7 Updated by Gilles Grandgérard about 1 year ago

  • Related to Tâche #28281: Correction HORUS-T08-001 - Réplication LDAP "manuelle" - (2.7.1-beta2) added

Also available in: Atom PDF