Re: query on using system call
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 22/08/06, [email protected] <[email protected]> wrote: > I am using a system call in my snmp agent code where I want to > run a script in the background. This scripts does some tasks & at the end it > wants to restart the snmpd with the latest configuration, so it tries to > restarts the snmpd with the new snmpd.conf. What do you mean by "restarts the snmpd"? Do you mean kill off the currently running agent and start a fresh one? 'Cos I don't think that will work - if nothing else, it's the parent of the script that's trying to kill it. I'm not sure that patricide is safe! Why don't you just signal to the currently running agent to re-read its configuration? The agent is already set up to do that - simply send it a HUP signal. Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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