Project

General

Profile

Tâche #25509

Scénario #25193: Vérifier le démarrage d'apache

Le service Apache2 n’attend pas le démarrage du réseau

Added by Daniel Dehennin almost 5 years ago. Updated almost 5 years ago.

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

100%

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

Description

Le service apache2 n’a pas les bonnes dépendances réseau:

# /lib/systemd/system/apache2.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
Environment=APACHE_STARTED_BY_SYSTEMD=true
ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl stop
ExecReload=/usr/sbin/apachectl graceful
PrivateTmp=true
Restart=on-abort

[Install]
WantedBy=multi-user.target

# /lib/systemd/system/apache2.service.d/apache2-systemd.conf
[Service]
Type=forking
RemainAfterExit=no

Associated revisions

Revision cc1f341c (diff)
Added by Daniel Dehennin almost 5 years ago

Apache2 service must wait for network before starting

  • systemd/apache2.service.d/override.conf: depends on
    “network-online.target”.

Ref: #25509

Revision 06e13faf (diff)
Added by Daniel Dehennin almost 5 years ago

Apache2 unit override is provided by eole-web-pkg

  • debian/eole-web-pkg.install: install unit override.
  • debian/eole-web-pkg.postinst: reload systemd configuration

Ref: #25509

History

#1 Updated by Daniel Dehennin almost 5 years ago

  • Assigned To set to Daniel Dehennin
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#2 Updated by Daniel Dehennin almost 5 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Scrum Master almost 5 years ago

  • Status changed from En cours to Résolu

#4 Updated by Laurent Flori almost 5 years ago

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

Also available in: Atom PDF