gentoo-ebuilds/net-analyzer/nfdump/files/nfdump.service
Arthur Zamarin f1bad49b20
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>
2024-07-30 22:30:56 +03:00

16 lines
365 B
Desktop File

[Unit]
Description=netflow capture daemon, %I instance
Documentation=man:nfcapd(1)
After=network.target auditd.service
PartOf=nfdump.service
[Service]
Type=forking
Environment=options="-l /var/cache/nfdump -p 2055"
ExecStart=/usr/bin/nfcapd -D -P %t/nfcapd.%I.pid $options
PIDFile=%t/nfcapd.%I.pid
KillMode=process
Restart=no
[Install]
WantedBy=multi-user.target