Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925033 - net-analyzer/nfdump: systemd services
Summary: net-analyzer/nfdump: systemd services
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2024-02-20 05:10 UTC by Robin Johnson
Modified: 2024-07-30 19:31 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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2024-02-20 05:10:09 UTC
Please install systemd services for nfdump.

Debian ships these:
https://salsa.debian.org/debian/nfdump/-/tree/unstable/debian?ref_type=heads

/etc/nfdump/default.conf
/lib/systemd/system-generators/nfdump-generator
/lib/systemd/system/nfdump.service
/lib/systemd/system/nfdump@.service

Infra plans to switch from legacy flow-tools to nfdump tooling as part of support systemd support, because upstream flow-tools is very unmaintained.
Comment 1 Larry the Git Cow gentoo-dev 2024-07-30 19:31:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1bad49b20c2eca95793c711f72a093a686adfdd

commit f1bad49b20c2eca95793c711f72a093a686adfdd
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-07-30 19:23:16 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-07-30 19:30:56 +0000

    net-analyzer/nfdump: add 1.7.4, added systemd service
    
    While the bug for adding systemd services requested more files,
    after more checking what they do, I see no reason for the
    complicated way that debian decided to do it. So What I recommend to
    do is:
    
    1. systemctl edit nfdump@somename
    
       [Service]
       Environment=options="-l /var/cache/nfdump_somename -p 2052"
    2. systemctl enable --now nfdump@somename
    
    Closes: https://bugs.gentoo.org/904952
    Closes: https://bugs.gentoo.org/925033
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 net-analyzer/nfdump/Manifest             |  1 +
 net-analyzer/nfdump/files/nfdump.service | 16 ++++++
 net-analyzer/nfdump/nfdump-1.7.4.ebuild  | 96 ++++++++++++++++++++++++++++++++
 3 files changed, 113 insertions(+)