Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145193 - net-analyzer/net-snmp-5.2.1.2-r1 snmptrapd expects nonexistant /etc/snmp/snmptrapd.conf
Summary: net-analyzer/net-snmp-5.2.1.2-r1 snmptrapd expects nonexistant /etc/snmp/snmp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 09:52 UTC by Michael Ploujnikov
Modified: 2006-11-26 13:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Ploujnikov 2006-08-26 09:52:43 UTC
Steps to reproduce the problem:

# emerge -v net-snmp
# /etc/init.d/snmptrapd start
 * Caching service dependencies ...                                       [ ok ]
 * You need an /etc/snmp/snmptrapd.conf config file to run snmptrapd
(service did not start)

It appears that the ebuild created /etc/conf.d/snmptrapd. I simply edited the checkconfig() function in /etc/init.d/snmptrapd to check for existance of /etc/conf.d/snmptrapd instead of /etc/snmp/snmptrapd.conf. This allowed the service to magically start without errors and successfully receive traps from my router. I'm guessing that the service was aleady configured somehow to look for config files in /etc/conf.d/ but the checkconfig function was not updated to that effect.
Comment 1 Cédric Krier gentoo-dev 2006-11-26 13:41:26 UTC
fix in cvs version 5.4
Comment 2 Cédric Krier gentoo-dev 2006-11-26 13:41:55 UTC
fix