Re: Re-reading a persistent store
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
> On Wed, 2005-11-09 at 14:11 -0500, [email protected] wrote: > > I found code in the agent to re-read configuration when a SIGHUP is > > received but changing my-subagent.conf and issuing SIGHUP to snmpd > > didn't reread the persistent store. > > That should have triggered the main snmpd agent to re-read its > configuration (including the persistent storage). But the main > agent and the subagent are two completely independent processes. > Reconfiguring one won't have any effect on the other. Yeah, I know that they're two different processes but I thought that the agent and subagent communicated more. I thought -- and perhaps I haven't looked at this closely enough -- that on shutdown the agent tells the subagent to save its persistent values. Based on that perhaps weak assumption, I thought it would also tell it to reread config. > > Do I need to send SIGHUP to my sub-agent? > > You certainly need to tell your sub-agent to re-read its > configuration. Without seeing the exact code, I wouldn't > like to say whether SIGHUP would do the trick, but it's > worth a try. Well, I was asking if the subagent code set up a signal handler for SIGHUP. I guess I see now that that's unlikely. > Suck it and see. Huh? ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users