Hello.

I received this report from the Debian bug system,
asking for a systemd unit for GLD.

Not tested a lot yet, but I believe something like this
would probably work:

--------------------------------------
[Unit]
Description=Postfix GreyList Daemon
After=network.target mariadb.service
Before=postfix.service

[Service]
User=postfix-gld
Group=postfix-gld
Type=forking
ExecStart=/usr/sbin/gld
Restart=always

[Install]
WantedBy=multi-user.target
--------------------------------------

but I would like to hear from you before adding that
to the Debian package.

Thanks.

-------- Mensaje reenviado --------
Asunto: Bug#1039323: postfix-gld: ships sysv-init script without systemd unit
Fecha: Sun, 25 Jun 2023 23:26:46 +0100
De: bl...@debian.org
Para: mainto...@bugs.debian.org

Package: postfix-gld
Severity: important
User: bl...@debian.org
Usertags: missing-systemd-service

Dear Maintainer(s),

postfix-gld has been flagged by Lintian as shipping a sysv-init
script without a corresponding systemd unit file. The default init
system in Debian is systemd, and so far this worked because a
transitional sysv-init-to-unit generator was shipped by systemd. This
is in the process of being deprecated and will be removed by the time
Trixie ships, so the remaining packages that ship init scripts
without systemd units will stop working.

There are various advantages to using native units, for example the
legacy generator cannot tell the different between a oneshot service
and a long running daemon. Also, sanboxing and security features
become available for services. For more information, consult the
systemd documentation:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html

You can find the Lintian warning here:

https://lintian.debian.org/sources/postfix-gld

In case this is a false positive, please add a Lintian override to
silence it and then close this bug.

Thanks!

Reply via email to