{"id":5112,"date":"2016-07-29T20:03:06","date_gmt":"2016-07-29T17:03:06","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5112"},"modified":"2016-07-29T20:03:06","modified_gmt":"2016-07-29T17:03:06","slug":"including-a-configuration-directory-includes-all-files-not-just-conf-files","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2016\/07\/29\/including-a-configuration-directory-includes-all-files-not-just-conf-files\/","title":{"rendered":"Including a configuration directory includes all files, not just *.conf files"},"content":{"rendered":"<p>The Include directive, when given a directory as parameter (such as \/etc\/proftpd\/conf.d\/, as in the stock \/etc\/proftpd\/proftpd.conf), causes all files in said directory to be read, not just ones ending in .conf. This causes problems if, for instance, I&#8217;m using vim to edit a file in the included directory while the proftpd service is being (re)started: vim stores a .swp file in the same directory, and proftpd may fail to start with &#8221;fatal: unknown configuration directive&#8221; when it tries to parse the .swp file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Include directive, when given a directory, includes all files from said directory, not just ones ending with .conf suffix.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14002,3840],"class_list":["post-5112","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-proftpd","tag-vim","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5112"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5112\/revisions"}],"predecessor-version":[{"id":5113,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5112\/revisions\/5113"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}