From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 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): ucd-snmp-4.2.4-1 How reproducible: Always 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 or 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 #!/bin/bash^M$ ^M$ # ucd-snmp init file for snmptrapd^M$ #^M$ # chkconfig: - 50 50^M$ # description: Simple Network Management Protocol (SNMP) Trap Daemon^M$ #^M$ # processname: /usr/sbin/snmptrapd^M$ # config: /etc/snmp/snmptrapd.conf^M$ <snip> - Running: "vi -b /etc/init.d/snmptrapd" !/bin/bash^M ^M # ucd-snmp init file for snmptrapd^M #^M # chkconfig: - 50 50^M <snip> 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.
There is currently an errata pending for AS2.1 that fixes this problem. Read ya, Phil
*** Bug 101939 has been marked as a duplicate of this bug. ***
Putting this into modified, rpm is built into 2.1AS-errata-candidate
*** Bug 106464 has been marked as a duplicate of this bug. ***
Errata for ucd-snmp has been released for AS2.1 with a fix for this problem, closing bug as Errata. Read ya, Phil