Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382215 - net-snmp-5.6.1 init scripts don't inhale from /etc/conf.d
Summary: net-snmp-5.6.1 init scripts don't inhale from /etc/conf.d
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 23:31 UTC by Scott Bertilson
Modified: 2011-09-07 23:39 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 Scott Bertilson 2011-09-07 23:31:22 UTC
The supplied init scripts (files/snmpd.init and files/snmptrapd.init) use but do not inhale options from /etc/conf.d/<daemon>.

Something like:

--- snmpd.init  2009-10-16 03:51:05.000000000 -0500
+++ snmpd.init.new      2011-09-07 18:28:50.990000046 -0500
@@ -10,6 +10,7 @@
        need net
 }
 
+[ -e /etc/conf.d/snmpd ] && . /etc/conf.d/snmpd
 SNMPD_PIDFILE="${SNMPD_PIDFILE:-/var/run/snmpd.pid}"
 
 checkconfig() {

and

--- snmptrapd.init      2009-10-16 03:51:05.000000000 -0500
+++ snmptrapd.init.new  2011-09-07 18:29:44.693534606 -0500
@@ -8,6 +8,7 @@
        need net
 }
 
+[ -e /etc/conf.d/snmptrapd ] && . /etc/conf.d/snmptrapd
 SNMPTRAPD_PIDFILE="${SNMPTRAPD_PIDFILE:-/var/run/snmptrapd.pid}"
 
 start() {
Comment 1 Scott Bertilson 2011-09-07 23:39:55 UTC
My mistake already handled.