Stuart Henderson <[email protected]> wrote: > > Diff below calls uname(3) only a single time and if the variables > > aren't snmpd.conf I simply rebuild it every time. > > I'm in two minds about this. While it's not something that will happen > very often, hostnames do get changed sometimes, and it would be nice to > have snmpd reflect the current name of the system rather than what it > was named when snmpd started.
I also disagree with this caching. Someone should not need to restart the daemon if they change the hostname, that is crazy, so the daemon should get it continually (or at least poll once in a while to look for a change). snmpd's job is to export current & correct information, not cache.
