Date: Wed, 19 Dec 2012 14:37:15 -0800 From: Xin Li <delphij@delphij.net> To: Benjamin Kaduk <bjkfbsd@gmail.com> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, bjk@freebsd.org, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl Message-ID: <50D2419B.20906@delphij.net> In-Reply-To: <CAJ5_RoACh-Qe7zxoBnJngB3kO4VW0x1yD9PDp8uuafwcnNAPHw@mail.gmail.com> References: <201212132332.qBDNWmK4037503@svn.freebsd.org> <50D1D720.80206@FreeBSD.org> <1355931456.1198.203.camel@revolution.hippie.lan> <05CC5BAD-B968-4A7A-8097-A3344D970D63@mu.org> <1355932607.1198.206.camel@revolution.hippie.lan> <F158CD10-B65B-4BBA-BCAD-6A52BC5C8FDF@mu.org> <50D2128A.7030205@delphij.net> <20121219210418.GA83983@stack.nl> <CAGH67wRTdBCZLq1R8-yqD6EBZ%2B=F228-0o_8TvU3b0KZD6vUfg@mail.gmail.com> <CAGH67wT1L_9ia7-hdHST6q8iCdtmFifZcHixCQhBTiZEH8YAcw@mail.gmail.com> <50D23961.7090803@delphij.net> <CAJ5_RoACh-Qe7zxoBnJngB3kO4VW0x1yD9PDp8uuafwcnNAPHw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 12/19/12 14:28, Benjamin Kaduk wrote: > [cc trimmed] > > On Wed, Dec 19, 2012 at 5:02 PM, Xin Li <delphij@delphij.net > <mailto:delphij@delphij.net>> wrote: > > Irrelevant. Consider this (extreme) situation: someone > distributes several sets of sysctl values tuned for certain > situations, like tcp.conf, supermicro.conf, ... and wants to put > them together in a directory, it's useful to source from the > directory without having to do a generation of command line on > boot, so when something goes wrong, they just remove the pack > rather than changing /etc/rc.conf. > > > Not a direct reply, but just noting that it can be *very* useful > to have, e.g., a README or foo.old or foo.disabled file in the same > directory where the "live" configuration files live. Always > interpreting the full '*' glob is not always the best thing to do. This is not an Unix utility should solve. To quote Terry Lambert: "If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot)." In other words, sysctl -f README should interpret README as input, not a file that contains user consumable text. To solve the problem we need a construct like in /etc/rc.subr, run_rc_script(). Cheers, - -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJQ0kGbAAoJEG80Jeu8UPuzdzsH/35v8W1ww2AIqun5Hhwp35Az xxlf/TDQdW1WE3ZwW2gqOD7AgGx+Q3yRKf+nGmQe1yvu8WP3i4HVUkDfp+ySzytZ oEBxLJnYZGstuHcmhncLGU6PbCBwcK3Y9dRlFIb9L5srFHaVuMsWK2nIZDx7TeOS +tcSwOSuJrerqCw6e6O61spHYTnIdnlAb1jEV7GaUciVqcgBxbKMf9iMpAspWm/e vl3dogHI+0NCT/tgaKAjS2EdG5UKqugF6Opc5RrwqDRo6kFNExy+0DN1UeFN4ahV 775872xHZEkHJvZtoTNXH5wKsfPhvjKLne2/nVkKhfu9aHwkXaHdZZXJdxB7+RU= =kMyx -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50D2419B.20906>