Masato Taruishi
taru****@sourc*****
2004年 7月 3日 (土) 22:47:40 JST
=================================================================== RCS file: plugin/snmp/snmppass.d/snmpgen,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- plugin/snmp/snmppass.d/snmpgen 2004/07/03 06:49:56 1.8 +++ plugin/snmp/snmppass.d/snmpgen 2004/07/03 13:47:40 1.9 @@ -19,11 +19,13 @@ LANG=C -eval `ultrapossum-config init` -trap "eval `ultrapossum-config term`" 0 +if test "x$MODULEDIR" = "x"; then + eval `ultrapossum-config init` + trap "eval `ultrapossum-config term`" 0 +fi failover() { - if ps -ef | grep "$hasysconfdir/resource.d/ldap start" | grep -v grep > /dev/null; then + if ps ax -o cmd= | grep "$hasysconfdir/resource.d/ldap start" | grep -v grep > /dev/null; then return 0 else return 1