Fixed my own problem. Turns out the execve wasn't getting the environment across, so the path to ./snmpd didn't work. The shutdown process actually DID the right thing with the persistent files, it was the barfed restart that seemed to reset them, and then die.
Sorry for the real-time debugging reports. Dana Burns wrote: >I'm using $SNMPCONFPATH with the persistent dir included. >versionSavePersistentData does exactly what I expect, namely touch the file >(no changes). > >versionRestartAgent, manages to kill my agent, and reset the persistent file >in the process. >Is this the intended behaviour? I watch it go through the restart_hook(), >restart_doit(), >snmp_shutdown(), snmp_store(), snmp_save_persistent(), snmp_clean_persistent() >process, >but why does it not read in the data from the interim snmpd.0.conf??? > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Net-snmp-coders mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
