{"id":56465,"date":"2021-05-06T09:00:30","date_gmt":"2021-05-06T09:00:30","guid":{"rendered":"https:\/\/www.cryptocabaret.com\/?p=56465"},"modified":"2021-05-06T09:00:30","modified_gmt":"2021-05-06T09:00:30","slug":"resolve-dhcpd-and-httpd-startup-failures-with-ansible","status":"publish","type":"post","link":"https:\/\/www.cryptocabaret.com\/?p=56465","title":{"rendered":"Resolve DHCPD and HTTPD startup failures with Ansible"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" typeof=\"foaf:Image\" src=\"https:\/\/www.cryptocabaret.com\/wp-content\/uploads\/2021\/05\/build_structure_tech_program_code_construction.png\" width=\"520\" height=\"292\" alt=\"Someone wearing a hardhat and carrying code \" title=\"Someone wearing a hardhat and carrying code \"><\/p>\n<p>Last year, I had a problem: HTTPD (the <a href=\"https:\/\/opensource.com\/article\/18\/2\/how-configure-apache-web-server\">Apache web server<\/a>) would not start on a reboot or cold boot. To fix it, I added an override file, <code>\/etc\/systemd\/system\/httpd.service.d\/override.conf<\/code>. It contained the following statements to delay HTTPD&#8217;s startup until the network is properly started and online. (If you&#8217;ve read my previous <a href=\"https:\/\/opensource.com\/users\/dboth\">articles<\/a>, you&#8217;ll know that I use NetworkManager and systemd, not the old SystemV network service and start scripts).<\/p>\n<p><a href=\"https:\/\/opensource.com\/article\/21\/5\/ansible-server-services\">read more<\/a><\/p>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\" rel=\"noopener\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last year, I had a problem: HTTPD (the Apache web server) would not start on a reboot or cold boot. To fix it, I added an override file, \/etc\/systemd\/system\/httpd.service.d\/override.conf. It contained the following statements to delay HTTPD&#8217;s startup until the network is properly started and online. (If you&#8217;ve read my previous articles, you&#8217;ll know that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":56466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[307],"tags":[],"class_list":["post-56465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source"],"_links":{"self":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/56465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56465"}],"version-history":[{"count":0,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/56465\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/media\/56466"}],"wp:attachment":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}