Bug 154798 - /etc/init.d/snmptrapd wrong order in setting variables...
/etc/init.d/snmptrapd wrong order in setting variables...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: net-snmp (Show other bugs)
4.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
:
Depends On:
Blocks: 156322
  Show dependency treegraph
 
Reported: 2005-04-14 05:22 EDT by Hans-Gerd van Schelve
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHSA-2005-395
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-05 08:38:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Hans-Gerd van Schelve 2005-04-14 05:22:16 EDT
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 Vokal 2005-04-19 09:42:05 EDT
Well, true. I'm including it into next net-snmp update .. 
Comment 4 Red Hat Bugzilla 2005-10-05 08:38:59 EDT
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

Note You need to log in before you can comment on or make changes to this bug.