[Pkg-systemd-maintainers] Meta dependencies in unit files?
Michael Stapelberg
stapelberg at debian.org
Wed Aug 21 20:13:18 BST 2013
Hi Moritz,
Sorry for the late reply.
Moritz Muehlenhoff <jmm at inutil.org> writes:
> I've been studying some unit files and I stumbled upon Fedora's service file
> for clamav-milter:
> http://pkgs.fedoraproject.org/cgit/clamav.git/tree/clamav-milter.systemd
>
> I contains the following snipped in the [Unit] section:
>
> | Before = sendmail.service
> | Before = postfix.service
>
> Is there the equivalent of Debian's "Provides: mail-transport-agent"
I think currently there isn’t. Maybe this can be solved by having a
mail-transport-agent.target, but I don’t claim that I understand targets
and all their implications well enough yet to tell for sure :). Maybe
you can experiment a bit and let us know your findings?
> for unit files? The above wouldn't really scale for Debian if the
> respective unit file needs to be updated whenever another MTA ships a
> systemd unit file?
Well, given that postfix.service can also mean /etc/init.d/postfix,
whether or not an MTA ships a systemd unit file is irrelevant. It would
only need to be updated whenever we get a new package that Provides:
mail-transport-agent, which is annoying, but not that big a deal, since
it happens rather rarely.
--
Best regards,
Michael
More information about the Pkg-systemd-maintainers
mailing list