Re: "something horrible happened" when running snmpdemoapp

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Li Juen Hwang wrote:
> What's wrong with shutting down agent with "kill -9"? What does it
> indicate?
> I ask because currently my agent (a master agent, not a subagent) can 
> only
> be shut down by "kill -9". It is launched with "-f -L -M -D" as a 
> thread on
> RH by a main program which will then connect to the data source to 
> get data.
> I'd like to know the impact of using "kill -9" and the correct way of 
> terminating an agent.

Use plain "kill" (=="kill -TERM") instead. Any well-behaved application 
should be given the chance to properly shutdown itself. A net-snmp based 
agent in particular will write the persistent config on shutdown which 
it cannot do if terminated the hard way (SIGKILL).


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.