Package: nfdump Version: 1.6.15-3 The systemd service file contains an "Alias" directive with the same name as the service file itself: === # cat /lib/systemd/system/nfdump.service [Unit] Description=netflow capture daemon After=network.target auditd.service
[Service] Type=simple ExecStart=/usr/bin/nfcapd -D -l /var/cache/nfdump -P /var/run/nfcapd.pid -p 2055 PIDFile=/var/run/nfcapd.pid KillMode=process Restart=no [Install] WantedBy=multi-user.target Alias=nfdump.service === This means an additional symlink is created (/etc/systemd/system/nfdump.service): === # systemctl reenable nfdump.service Removed /etc/systemd/system/nfdump.service. Removed /etc/systemd/system/multi-user.target.wants/nfdump.service. Created symlink /etc/systemd/system/nfdump.service → /lib/systemd/system/nfdump.service. Created symlink /etc/systemd/system/multi-user.target.wants/nfdump.service → /lib/systemd/system/nfdump.service. === Based on https://www.freedesktop.org/software/systemd/man/systemd.unit.html the most basic way to override a system default unit file is to place a replacement file in /etc/systemd/system, which in this case collides with the additional symlink: "There are two methods of overriding vendor settings in unit files: copying the unit file from /usr/lib/systemd/system to /etc/systemd/system and modifying the chosen settings.[...]" Removing the Alias line fixes this: === --- /lib/systemd/system/nfdump.service.orig 2018-03-08 15:29:38.600937930 +0100 +++ /lib/systemd/system/nfdump.service 2018-03-08 15:28:43.188740907 +0100 @@ -11,5 +11,4 @@ [Install] WantedBy=multi-user.target -Alias=nfdump.service # systemctl reenable nfdump.service Removed /etc/systemd/system/nfdump.service. Removed /etc/systemd/system/multi-user.target.wants/nfdump.service. Created symlink /etc/systemd/system/multi-user.target.wants/nfdump.service → /lib/systemd/system/nfdump.service. === -- Patrik Lundin

