On Wed, Jun 16, 2021 at 10:43 AM Lennart Poettering <lennart@xxxxxxxxxxxxxx> wrote:
On Di, 15.06.21 02:03, Kenneth Porter (shiva@xxxxxxxxxxxxxxx) wrote:
> What happens if I list multiple services in a Wants= and After= clause that
> are mutually exclusive (eg. sendmail/postfix/exim? How can I say "This unit
> needs to send mail" without knowing which is enabled?
What does "needs to send mail" even mean? That /usr/sbin/sendmail can
be called to queue a message? That you can talk to localhost:25?
A well behaving MTA actually make /usr/sbin/sendmail work without the
main mail daemon to be up. The mail is then only enqueued, but not
dispatched, but that'll be done once the service is fully up.
Hmm, I was going to post the same at first, but it doesn't really work in reverse -- if you want to send mail on shutdown and if the goal of After=postfix is "run my ExecStop before postfix gets stopped", then ability to queue doesn't help all that much.
Mantas Mikulėnas
_______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel