"daemon" command no longer works after upgrade

"Gebhardt, Tom" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <8A5CC92AA81BEF4BAA2BBB7556744B2602602513@NDHV3001.na.corp.mckesson.com>
On Linux, I upgraded Net-SNMP from 5.4.2.1 to 5.5.  I am running
embedded perl.
 
My /etc/rc.d/init.d/snmpd script issues the command:"daemon
/usr/sbin/snmpd" (the "daemon" script is contained in
/etc/init.d/functions).  This eventually expands out to the following
command string:
 
/bin/bash -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/snmpd -Lsd -Lf
/dev/null -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf -C'
 
which should "daemonize" snmpd.  This worked fine in the 5.4.2.1 release
but now "hangs" the snmpd script after the above command.
If I remove the 'perl do "/usr/sbin/myagent.pl";' directive from
snmpd.conf then the /etc/rc.d/init.d/snmpd script works properly.
 
 
 
Similarly, if I remove the 'perl do "/usr/sbin/myagent.pl";' directive
from snmpd.conf (which allows /etc/rc.d/init.d/snmpd to run properly)
and then attempt to do a "daemon /usr/sbin/myagent.pl" from another
startup script (where myagent.pl runs as a AgentX subagent vs. an
embedded agent then see the following:
/bin/bash -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/myagent.pl'

NET-SNMP version 5.5 AgentX subagent connected

at this point this startup script hangs also.

Any help would be appreciated.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

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