Thanks for you help, I have resolved this problem.
----- Original Message -----
From: "Dave Shield" <D.T.Shield@...>
To: "刘谋旺" <liu.mouwang@...>
Cc: "Mishustin Kirill" <mishustin@...>; "Net-snmp-users" <net-snmp-users@...>
Sent: Tuesday, December 28, 2010 7:39 PM
Subject: Re: snmp
> 2010/12/28 刘谋旺 <liu.mouwang@...>:
>> SIGHUP default behavior is terminate process
> Not for the Net-SNMP agent.
> This signal will tell the agent to re-read the config files,
> just as Mishustin said.
>> I read snmpd code,
>> I can't find any function to deal with SIGHUP.
> I suggest you read the code again, more closely.
> In particular, see the function SnmpdReconfig in the file snmpd.c
>> That is to say, If I send a SIGHUP, the process is restart actually.
> No - if you send a HUP signal, the agent will re-read the configuration
> file. Which is exactly what you asked for originally:
>>>> I hope send a signal to notice snmpd re-read configuration, or other
>>>> metheds, but not to restart snmpd.