svn commit: r244198 - in head: etc/rc.d sbin/sysctl

Xin Li delphij at delphij.net
Wed Dec 19 22:37:16 UTC 2012


-----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 at delphij.net 
> <mailto:delphij at 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 at 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-----


More information about the svn-src-all mailing list