Project

General

Profile

Tâche #17047

Distribution EOLE - Scénario #16962: Traitement express MEN (36-38)

Les services ead-server et ead-web ne devrait démarrer que si leur fichiers de configuration existent

Added by Daniel Dehennin about 7 years ago. Updated about 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/07/2016
Due date:
% Done:

100%

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

Description

root@scribe:~# systemctl status ead-server
● ead-server.service - EAD backend server
   Loaded: loaded (/lib/systemd/system/ead-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since mer. 2016-09-07 11:53:57 CEST; 26s ago
  Process: 3189 ExecStart=/usr/bin/twistd --nodaemon --no_save --pidfile /var/run/ead/ead-server.pid --python=/usr/share/ead2/backend/eadserver.tac (code=exited, status=0/SUCCESS)
  Process: 3186 ExecStartPre=/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/ead-server.conf (code=exited, status=0/SUCCESS)
 Main PID: 3189 (code=exited, status=0/SUCCESS)

sept. 07 11:53:56 scribe ead-server[3189]: Fichier de configuration non existant
sept. 07 11:53:57 scribe systemd[1]: ead-server.service: Service hold-off time over, scheduling restart.
sept. 07 11:53:57 scribe systemd[1]: Stopped EAD backend server.
sept. 07 11:53:57 scribe systemd[1]: ead-server.service: Start request repeated too quickly.
sept. 07 11:53:57 scribe systemd[1]: Failed to start EAD backend server.

Dans /usr/share/ead2/config/config.py:

CONFIG_FILE = '/var/lib/eole/config/ead.cfg'

if not osp.isfile(CONFIG_FILE):
    print("Fichier de configuration non existant")
    exit(0)

Associated revisions

Revision c578bd83 (diff)
Added by Daniel Dehennin about 7 years ago

N’activer les services qu’avec leur configuration

  • init/ead-server.service (ConditionPathExists): Dépendance sur
    /var/lib/eole/config/ead.cfg.
  • init/ead-web.service (ConditionPathExists): Idem.

Ref: #17047

History

#1 Updated by Daniel Dehennin about 7 years ago

  • Project changed from Distribution EOLE to ead
  • Assigned To set to Daniel Dehennin

#2 Updated by Daniel Dehennin about 7 years ago

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

#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

  • Status changed from En cours to Résolu

#5 Updated by Laurent Flori about 7 years ago

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

Also available in: Atom PDF