Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172281 - net-analyzer/pmacct does not respect interface setting in /etc/pmacct.conf
Summary: net-analyzer/pmacct does not respect interface setting in /etc/pmacct.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 09:44 UTC by Natanael Copa
Modified: 2007-03-28 21:18 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 Natanael Copa 2007-03-26 09:44:31 UTC
The /etc/init.d/pmacct will override the interface setting in /etc/pmacct.conf.

I suggest this change:
--- pmacctd.orig        2007-03-26 09:35:57 +0000
+++ pmacctd     2007-03-26 09:36:11 +0000
@@ -18,7 +18,7 @@
        chekconfig || return 1
        ebegin "Starting pmacctd"
        start-stop-daemon --start --exec /usr/sbin/pmacctd \
-               -- -D -f /etc/pmacctd.conf -i ${INTERFACE} ${OPTS}
+               -- -D -f /etc/pmacctd.conf ${OPTS}
 
        # pmacctd apparently always returns a value > 0 when launched,
        # and start-stop-daemon sees that an error an therfore always

And the remove INTERFACE in /etc/conf.d/pmacct.

Configuration should be done in /etc/pmacct.conf. /etc/conf.d/pmacct is only for those with special needs.
Comment 1 Cédric Krier gentoo-dev 2007-03-28 21:18:24 UTC
Fix in cvs