<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 20: Comment-out all non-essential directives in default/test config files</title><link>https://sourceforge.net/p/ptpd/feature-requests/20/</link><description>Recent changes to 20: Comment-out all non-essential directives in default/test config files</description><atom:link href="https://sourceforge.net/p/ptpd/feature-requests/20/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 13 Feb 2014 15:57:12 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ptpd/feature-requests/20/feed.rss" rel="self" type="application/rss+xml"/><item><title>#20 Comment-out all non-essential directives in default/test config files</title><link>https://sourceforge.net/p/ptpd/feature-requests/20/?limit=25#0f1f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;One thing to add would be that the file ptpd2.conf.default-full that's part of the distribution, is generated by ptpd itself and contains all possible settings explicitly set to their default values. ptpd2 --default-config / ptpd2 -O gives you this output and apart from actual bugs (like the one you raised recently), when used, is no different to not setting anything.&lt;/p&gt;
&lt;p&gt;The idea of the default config file is that it's a config file containing default values, not the default config to be used. &lt;/p&gt;
&lt;p&gt;But anyhow, we get your point, ptpd needs some housekeeping, but this is a hobbyist project with no backing so we do what we can in our free time. The situation has greatly improved in 2.3 anyway, previous versions didn't even have config file support and we literally ran out of one-letter arguments, upper and lowercase :)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wojciech Owczarek</dc:creator><pubDate>Thu, 13 Feb 2014 15:57:12 -0000</pubDate><guid>https://sourceforge.net2e92c2451a81428705704ef2d06a524e569f5de7</guid></item><item><title>Comment-out all non-essential directives in default/test config files</title><link>https://sourceforge.net/p/ptpd/feature-requests/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;After having trouble with incorrect initial configs, I recommend the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;When generating a default configuration file, leave all non-essential lines (those that are not intended to be tuned by average user) commented out.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Remove all non-essential lines (those that are not absolutely necessary) from sample configuration files. Remove directive descriptions as well, or keep them minimalistic. Make it clear in &lt;em&gt;INSTALL&lt;/em&gt; documentation that all sample configurations are only for testing whether the built binary really works, and they shouldn't be used as a basic template for further adjustments.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This should help to prevent situations when an aged configuration file lacks some new directives, or contains some "magic" values that aren't appropriate anymore.&lt;/p&gt;
&lt;p&gt;As far as I see it, most users will never change servo parameters, communication intervals and many other things. Currently, with all directives uncommented by default, they add nothing to the resulting state as long as their values remain consistent with the code, but they will impede new default values from coming into effect whenever those are introduced. If all defaults were commented out, the new defaults would took their place seamlessly. Anyway, even if those new values broke compatibility for some users, these users would be able to uncomment their previous defaults to check if that restores normal operation.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anton Samsonov</dc:creator><pubDate>Thu, 13 Feb 2014 15:22:17 -0000</pubDate><guid>https://sourceforge.net38f36db3104c23a8a15abc7b6596b63b5c15a629</guid></item></channel></rss>