Le mercredi 27 mai 2015 à 10:00, BERTRAND Joël a écrit :
Il le supporte. De là à dire très bien... J'ai eu un serveur avec un apache
en rade (en raison de l'adresse IPv6 que le FAI m'a changé dans mon dos).
Systemd retournait bien 'OK' alors qu'apache plantait dès son
initialisation.
Suite à l'ajout d'une directive pourrie dans l'un des fichiers de configuration
d'Apache :
$ sudo service apache2 restart Job for apache2.service failed. See
'systemctl status apache2.service' and 'journalctl -xn' for details.
$ systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since mer. 2015-05-27 11:00:59 CEST; 1min 4s ago
Process: 2046 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2076 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
mai 27 11:00:59 mioga apache2[2076]: Starting web server: apache2 failed!
mai 27 11:00:59 mioga apache2[2076]: The apache2 configtest failed. ... (warning).
mai 27 11:00:59 mioga systemd[1]: apache2.service: control process exited, code=exited status=1
mai 27 11:00:59 mioga systemd[1]: Failed to start LSB: Apache2 web server.
mai 27 11:00:59 mioga systemd[1]: Unit apache2.service entered failed state.
mai 27 11:00:59 mioga apache2[2076]: Output of config test was:
mai 27 11:00:59 mioga apache2[2076]: AH00526: Syntax error on line 5 of /etc/apache2/conf-enabled/mioga-main.conf:
mai 27 11:00:59 mioga apache2[2076]: Invalid command 'qsdqsd', perhaps misspelled or defined by a module not included in the server configuration
mai 27 11:00:59 mioga apache2[2076]: Action 'configtest' failed.
mai 27 11:00:59 mioga apache2[2076]: The Apache error log may have more information.''''
On voit donc que :
- Systemd me dit que ça s'est mal passé,
- Systemd me donne les lignes de log correspondant au démarrage (ce qu'on
n'avait pas avec SysV).
Je trouve ça plutôt pas mal…
Pour ton problème de démarrage suite au changement d'IP par ton fournisseur…
- Systemd ne me semble pas responsable de ce changement d'IP…