Project

General

Profile

Tâche #16904

Distribution EOLE - Scénario #16720: Traitement express (28-35)

Desactiver l'init-sysv de eole-ejabberd

Added by Laurent Flori about 5 years ago. Updated about 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/30/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:
Remaining (hours):
0.0

Description

Si on active plusieurs fois le service systemd d'ejabberd. On obtient un message d'erreur avec le script d'init de sysv


Related issues

Related to Distribution EOLE - Tâche #21225: Masquer les services en plus de les désactiver (et démasquer avant d’activer). Fermé 03/21/2017

Associated revisions

Revision a7566208 (diff)
Added by Laurent Flori about 5 years ago

Desactivation du sysv ejabberd

ref: #16904

Revision c883b178 (diff)
Added by Daniel Dehennin about 5 years ago

Remplacement du service systemd

La section « [Install] » n’est pas gérée dans <name>.service.d/*.conf
d’après la page man de systemd.unit.

  • init/ejabberd.service: Service corrigé.
  • eole-ejabberd.mk (init_DATA_DIR): Installation du service corrigé
    directement dans « /etc/systemd/system/ » pour outrepasser celui du
    paquet ejabberd.

Ref: #16904

Revision 2dfd0bc6 (diff)
Added by Daniel Dehennin about 5 years ago

Gestion du service ejabberd au packaging

  • debian/eole-ejabberd-pkg.preinst: Désactivation du service afin de
    pouvoir installer le fichier de remplacement.
  • debian/eole-ejabberd-pkg.postinst: Rechargement de la configuration
    systemd.

Ref: #16904

History

#1 Updated by Laurent Flori about 5 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Daniel Dehennin about 5 years ago

  • Assigned To changed from Laurent Flori to Daniel Dehennin

D’après la page man systemd.unit :

Also note that settings from the "[Install]" section are not honoured in drop-in unit files, and have no effect.

Il faut donc fournir un service corrigé en remplacement.

#3 Updated by Daniel Dehennin about 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 0.5 to 0.25

#4 Updated by Daniel Dehennin about 5 years ago

  • Status changed from En cours to Résolu

#5 Updated by Emmanuel GARETTE about 5 years ago

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

Ok :

root@scribe:~# grep Alias /lib/systemd/system/ejabberd.service
Alias=ejabberd.service
root@scribe:~# systemctl cat ejabberd|grep Alias
root@scribe:~# systemctl enable ejabberd
Synchronizing state of ejabberd.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable ejabberd
root@scribe:~# systemctl enable ejabberd
Synchronizing state of ejabberd.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable ejabberd

#6 Updated by Daniel Dehennin about 4 years ago

  • Related to Tâche #21225: Masquer les services en plus de les désactiver (et démasquer avant d’activer). added

Also available in: Atom PDF