title: Job for httpd.service failed because the control process exited with error code
body: <p>I am studying openstack, in the virtual machine, after I change the <code>00-nova-placement-api.conf</code>, </p>
  
  <p>I want to restart <code>httpd</code>:</p>
  
  <pre><code>systemctl restart httpd
  </code></pre>
  
  <p>But I get failed:</p>
  
  <blockquote>
    <p>Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.</p>
  </blockquote>
  
  <p>So I execute the </p>
  
  <pre><code>systemctl status httpd.service
  </code></pre>
  
  <p>I get below information:</p>
  
  <pre><code>x— httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2017-05-31 16:50:51 CST; 24s ago
       Docs: man:httpd(8)
             man:apachectl(8)
    Process: 34969 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
    Process: 34967 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
   Main PID: 34967 (code=exited, status=1/FAILURE)
  
  May 31 16:50:51 controller1 systemd[1]: Starting The Apache HTTP Server...
  May 31 16:50:51 controller1 httpd[34967]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 16 of /etc/httpd/con...fVersion&gt;
  May 31 16:50:51 controller1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  May 31 16:50:51 controller1 kill[34969]: kill: cannot find process ""
  May 31 16:50:51 controller1 systemd[1]: httpd.service: control process exited, code=exited status=1
  May 31 16:50:51 controller1 systemd[1]: Failed to start The Apache HTTP Server.
  May 31 16:50:51 controller1 systemd[1]: Unit httpd.service entered failed state.
  
  May 31 16:50:51 controller1 systemd[1]: httpd.service failed.
  Hint: Some lines were ellipsized, use -l to show in full.
  </code></pre>
  
  <hr>
  
  <p>I execute the order below:</p>
  
  <pre><code>journalctl -xn
  </code></pre>
  
  <p>then I got the below information:</p>
  
  <pre><code>[root@controller1 ~]# journalctl -xn
  -- Logs begin at Tue 2017-05-30 19:27:19 CST, end at Wed 2017-05-31 17:58:53 CST. --
  May 31 17:58:48 controller1 systemd[1]: Unit openstack-nova-api.service entered failed state.
  May 31 17:58:48 controller1 systemd[1]: openstack-nova-api.service failed.
  May 31 17:58:49 controller1 systemd[1]: openstack-nova-api.service holdoff time over, scheduling restart.
  May 31 17:58:49 controller1 systemd[1]: Starting OpenStack Nova API Server...
  -- Subject: Unit openstack-nova-api.service has begun start-up
  -- Defined-By: systemd
  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  --
  -- Unit openstack-nova-api.service has begun starting up.
  May 31 17:58:53 controller1 systemd[1]: openstack-nova-api.service: main process exited, code=exited, status=1/FAILURE
  May 31 17:58:53 controller1 systemd[1]: Failed to start OpenStack Nova API Server.
  -- Subject: Unit openstack-nova-api.service has failed
  -- Defined-By: systemd
  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  --
  -- Unit openstack-nova-api.service has failed.
  --
  -- The result is failed.
  May 31 17:58:53 controller1 systemd[1]: Unit openstack-nova-api.service entered failed state.
  May 31 17:58:53 controller1 systemd[1]: openstack-nova-api.service failed.
  May 31 17:58:53 controller1 systemd[1]: openstack-nova-api.service holdoff time over, scheduling restart.
  May 31 17:58:53 controller1 systemd[1]: Starting OpenStack Nova API Server...
  -- Subject: Unit openstack-nova-api.service has begun start-up
  -- Defined-By: systemd
  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  --
  -- Unit openstack-nova-api.service has begun starting up.
  </code></pre>
  
  <hr>
  
  <p>My 00-nova-placement-api.conf is below:</p>
  
  <pre><code>Listen 8778
  
  &lt;VirtualHost *:8778&gt;
  WSGIProcessGroup nova-placement-api
  WSGIApplicationGroup %{GLOBAL}
  WSGIPassAuthorization On
  WSGDaemonProcess nova-placement-api processes=3 threads=1 user=nova group=nova
  WSGIScriptAlias //usr/bin/nova-placement-api
  &lt;Directory "/"&gt;
      Order allow,deny
      Allow from all
      Require all granted
  &lt;/Directory&gt;
  &lt;IfVersion&gt;=2.4&gt;
      ErrorLogFormat "%M"
  &lt;/IfVersion&gt;
      ErrorLog /var/log/nova/nova-placement-api.log
  &lt;/VirtualHost&gt;
  
  Alias /nova-placement-api /usr/bin/nova-placement-api
  &lt;Location /nova-placement-api&gt;
      SetHandler wsgi-script
      Options + ExecCGI
      WSGIProcessGroup nova-placemnet-api
      WSGIApplicationGroup %{GLOBAL}
      WSGIPassAuthorization On
  &lt;/Location&gt;
  ~
  </code></pre>
  
  <hr>
  
  <p><strong>Atteention</strong></p>
  
  <p>I find a clew in the information:</p>
  
  <blockquote>
    <p>: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 14 of /etc/httpd/con... numbers.</p>
  </blockquote>
  
  <p>the screen-shoot is below:</p>
  
  <p><a href="https://i.stack.imgur.com/95oDA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/95oDA.jpg" alt="enter image description here"></a></p>
  
  <p>the 353 line is below:
  <code>
  IncludeOptional conf.d/*.conf
  </code></p>
  
  <p>I don't know where is the error.</p>