From c8d006aef5eea53538597493312f34ff54d3e7b1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 13 Sep 2020 02:17:11 +1200 Subject: Use short `mail` options for compat with BSD mail --- systemd/user/notify-email@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/user/notify-email@.service b/systemd/user/notify-email@.service index c136effa..1368f2b9 100644 --- a/systemd/user/notify-email@.service +++ b/systemd/user/notify-email@.service @@ -3,5 +3,5 @@ Description=unit status mailer service for %i [Service] Type=oneshot -ExecStart=sh -c 'systemctl --user status %i | mail --append="From: systemd" --append="X-systemd: %H %m %b" --subject="[systemd] %i failure" %u' +ExecStart=sh -c 'systemctl --user status %i | mail -a "From: systemd" -a "X-systemd: %H %m %b" -s "[systemd] %i failure" %u' TimeoutStartSec=1m -- cgit v1.2.3