Re: How to restart agent from itself?

2013-06-07 Thread santosh
Thank you pointing me to SIGHUP. I just needed to take care of snmpd.conf before issuing SIGHUP. Without this, I was doing all kind of stupid things like forking then execving etc. Best regards, Santosh On Wed, Jun 5, 2013 at 6:55 PM, wrote: > Using system() to call /etc/init.d/snmpd probably

RE: How to restart agent from itself?

2013-06-05 Thread jregovic
Using system() to call /etc/init.d/snmpd probably will never work./etc/init.d/snmpd is a shell script that sets up and starts snmpd or finds the pid and kills it. When you cal system(), you are creating a child process that will be stopped when the parent process stops.If you want to try and have t