• [^] # Re: Pas le problème mais la raison !

    Posté par (site web personnel) . En réponse au journal Vous avez aimé BSD vs System V ? Vous aimerez systemd vs openRC (et le reste du monde). Évalué à 7.

    Je ne vois pas ce que tu veux dire. J'ai arrêté httpd et fait un nc -l 80 dans un screen :

    $ systemctl start httpd
    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
    $ systemctl status httpd
    くろまる httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since mer. 2017年07月26日 17:23:22 CEST; 13s ago
     Docs: man:httpd.service(8)
     Process: 30227 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
     Process: 11030 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
     Main PID: 11030 (code=exited, status=1/FAILURE)
    juil. 26 17:23:22 myserver systemd[1]: Starting The Apache HTTP Server...
    juil. 26 17:23:22 myserver httpd[11030]: [Wed Jul 26 17:23:22.565935 2017] [so:warn] [pid 11030] AH01574: module proxy_wstunnel_module is already loaded, skipping
    juil. 26 17:23:22 myserver httpd[11030]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    juil. 26 17:23:22 myserver httpd[11030]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    juil. 26 17:23:22 myserver httpd[11030]: no listening sockets available, shutting down
    juil. 26 17:23:22 myserver httpd[11030]: AH00015: Unable to open logs
    juil. 26 17:23:22 myserver systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
    juil. 26 17:23:22 myserver systemd[1]: Failed to start The Apache HTTP Server.
    juil. 26 17:23:22 myserver systemd[1]: httpd.service: Unit entered failed state.
    juil. 26 17:23:22 myserver systemd[1]: httpd.service: Failed with result 'exit-code'.
    

    Alors oui deux commandes pour avoir l'erreur, mais au moins je sais que je vais l'avoir de manière standard. Et surtout je n'ai pas rien...