Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354649 - net-analyzer/pmacct: pmacctd.conf installed in wrong location
Summary: net-analyzer/pmacct: pmacctd.conf installed in wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-12 18:59 UTC by Dustin C. Hatch
Modified: 2011-07-30 21:08 UTC (History)
1 user (show)

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 Dustin C. Hatch 2011-02-12 18:59:48 UTC
The net-analyzer/pmacct-0.12.5 ebuild installs ``pmacctd.conf`` in ``/etc``, but the default configuration for the ``pmacctd`` init script looks for the configuration file at ``/etc/pmacct/pmacctd.conf``.

Reproducible: Always

Steps to Reproduce:
1. emerge -av pmacct
2. rc-service pmacctd start

Actual Results:  
``pmacctd`` fails to start with the following error::

     * You need an /etc/pmacct/pmacctd.conf file to run pmacctd

Expected Results:  
``pmacctd`` should have started with the default configuration
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-15 14:16:41 UTC
Odd, that. It worked for Marcin Mirosław in bug #306837).
Comment 2 Dustin C. Hatch 2011-02-17 01:32:09 UTC
(In reply to comment #1)
> Odd, that. It worked for Marcin Mirosław in bug #306837).
> 

I'm sure he manually placed a ``pmacctd.conf`` in the new directory. The ebuild certainly doesn't create one::

    $ equery files net-analyzer/pmacct-0.12.5 | grep pmacctd.conf
    /etc/pmacctd.conf
Comment 3 Patrick Lauer gentoo-dev 2011-07-30 21:08:25 UTC
+  30 Jul 2011; Patrick Lauer <patrick@gentoo.org> +pmacct-0.12.5-r1.ebuild:
+  Config file location fix for #354649

init script pointed at different path, so I changed the location of the config file. Hope that's ok for everyone ...