Bug 154798

Summary: /etc/init.d/snmptrapd wrong order in setting variables...
Product: Red Hat Enterprise Linux 4 Reporter: Hans-Gerd van Schelve <van-schelve>
Component: net-snmpAssignee: Radek Vokál <rvokal>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2005-395 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 12:38:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 156322    

Description Hans-Gerd van Schelve 2005-04-14 09:22:16 UTC
This is an snap of the original initscript:
--------->>>>---------------
# source function library
. /etc/init.d/functions

[ -e /etc/snmp/snmptrapd.options ] && . /etc/snmp/snmptrapd.options

OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
RETVAL=0
prog="snmptrapd"
---------<<<<---------------

It shoud be like this:

--------->>>>---------------
# source function library
. /etc/init.d/functions

if [ -e /etc/snmp/snmptrapd.options ]; then
  . /etc/snmp/snmptrapd.options
else
   OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
fi
RETVAL=0
prog="snmptrapd"
---------<<<<---------------

Otherwise settings in snmptrapd.options will not take affect.

Comment 1 Radek Vokál 2005-04-19 13:42:05 UTC
Well, true. I'm including it into next net-snmp update .. 

Comment 4 Red Hat Bugzilla 2005-10-05 12:38:59 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-395.html