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
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