Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 635562

Summary: net-analyzer/pmacct - add systemd support
Product: Gentoo Linux Reporter: Olliver Schinagl <oliver>
Component: Current packagesAssignee: Netmon Herd <netmon>
Status: UNCONFIRMED ---    
Severity: normal CC: systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

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 ...