Workaround for issues starting services in centos-7 (and potentially other systemd based) infrastructure containers

Ryan -

If you run into the following errors attempting to start services via systemctl in centos-7 or other systemd based infrastructure containers:

# 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.


Create a directory 


in this case, for httpd, that would be 


Create a file named override.conf in that directory, i.e.:


Edit that file to contain


and run 

systemctl daemon-reload

The service should now start properly.

Have more questions? Submit a request


Article is closed for comments.