mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
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>
16 lines
365 B
Desktop File
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
|