Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635562 - net-analyzer/pmacct - add systemd support
Summary: net-analyzer/pmacct - add systemd support
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Netmon Herd
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
Reported: 2017-10-27 08:59 UTC by Olliver Schinagl
Modified: 2017-10-28 13:18 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Olliver Schinagl 2017-10-27 08:59:53 UTC
pmacct does not come with an upstream systemd service file. Since upstream lacks any startup scripts, I assume it is expected that downstream adds these themselves.

Here is my current service file which seems to work for a single database config. Obviously the wants/after should probably go into the override.conf on a system that uses the database.

The file needs to be invoked the (a symlink) pmacct@interface.service directive as you cannot listen on multiple interfaces afaik.

Description=pmacctd service

ExecStart=/usr/sbin/pmacctd $OPTS -f /etc/pmacctd/pmacctd.conf -i %I

Comment 1 Olliver Schinagl 2017-10-27 09:01:23 UTC
p.s. the wants/after could potentially be expanded with sys-subsystem-net-devices-%I.device though I currently have the -w in my $OPTS to hopefully cover that ...