Package: ndpmon
Version: 1.4.0-2.1
Severity: normal
Tags: bullseye sid

Dear Maintainer,

Please consider adding a native systemd service masking the already
shipped init script (fixes lintian tag[1] in subject).

I've attached my own attempt at writing a service file, based off
looking at what the init script does. Note that it is completely
untested (as I don't use ndpmon myself).

You should be able to use the ndpmon.service file by dropping it into
the debian/ directory and then bumping debhelper compat to >= 10
which will get the service file automatically handled (also
debhelper compat <= 9 is deprecated).

Additional improvements eg. using security hardening[2] could also be
added.

Regards,
Andreas Henriksson


[1]: 
https://lintian.debian.org/tags/missing-systemd-service-for-init.d-script.html
[2]: 
https://lintian.debian.org/tags/systemd-service-file-missing-hardening-features.html
[Unit]
Description=IPv6 Neighbor Discovery Protocol Monitor
After=network.target
ConditionPathExists=/etc/ndpmon/config_ndpmon.xml

[Service]
Type=simple
#Environment=DAEMON_ARGS=
EnvironmentFile=-/etc/default/ndpmon
ExecStart=/usr/sbin/ndpmon $DAEMON_ARGS

[Install]
WantedBy=multi-user.target

Reply via email to