Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 101671 - snmptrapd init script contains invisible carriage returns in script
snmptrapd init script contains invisible carriage returns in script
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: ucd-snmp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Brock Organ
Dell MUSTFIX bug as well (106464)
: 101939 106464 (view as bug list)
Depends On:
Blocks: 87937
  Show dependency treegraph
Reported: 2003-08-05 10:34 EDT by Sherif Abdelgawad
Modified: 2015-03-04 20:12 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-09 05:42:56 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sherif Abdelgawad 2003-08-05 10:34:44 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823

Description of problem:
The snmptrapd init script (/etc/rc.d/init.d/snmptrapd) contains invisible
carriage returns which produces the errors when trying to use it.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Install ucd-snmp-4.2.4-1 RPM
2.run: service snmptrapd start
3. Examine /etc/init.d/snmptrapd by :
   cat -A /etc/init.d/snmptrapd
   vi -b /etc/init.d/snmptrapd


Actual Results:  - Running: "service snmptrapd start" results in error
lboots3:~# service snmptrapd start
/sbin/service: /etc/init.d/snmptrapd: bad interpreter: No such file or directory

- Running: cat -A /etc/init.d/snmptrapd
# ucd-snmp init file for snmptrapd^M$
# chkconfig: - 50 50^M$
# description: Simple Network Management Protocol (SNMP) Trap Daemon^M$
# processname: /usr/sbin/snmptrapd^M$
# config: /etc/snmp/snmptrapd.conf^M$

- Running: "vi -b /etc/init.d/snmptrapd"
# ucd-snmp init file for snmptrapd^M
# chkconfig: - 50 50^M

Expected Results:  - Running: "service snmptrapd start":
Starting snmptrapd:                                        [  OK  ]

==> Starts without errors

- Examining the file by car or vi does not have the ^M / (\r).

Additional info:

Problem can be overcome by stripping all "^M"'s from the init script and repackage.
Comment 1 Phil Knirsch 2003-08-05 10:42:02 EDT
There is currently an errata pending for AS2.1 that fixes this problem.

Read ya, Phil
Comment 2 Phil Knirsch 2003-08-08 08:16:19 EDT
*** Bug 101939 has been marked as a duplicate of this bug. ***
Comment 3 Florian La Roche 2003-09-22 12:18:35 EDT
Putting this into modified, rpm is built into 2.1AS-errata-candidate
Comment 4 Florian La Roche 2003-10-08 04:52:56 EDT
*** Bug 106464 has been marked as a duplicate of this bug. ***
Comment 6 Phil Knirsch 2003-12-09 05:42:56 EST
Errata for ucd-snmp has been released for AS2.1 with a fix for this
problem, closing bug as Errata.

Read ya, Phil

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