diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-20 20:52:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-20 20:52:23 +1200 |
commit | 0a0f019f4a9295c5c86de3ad4f238bdfa0b5924d (patch) | |
tree | ff6175ffc91a9c09d1fe755e8d34605bb81cc16b | |
parent | Email on systemd-run is "completion" not "success" (diff) | |
download | dotfiles-0a0f019f4a9295c5c86de3ad4f238bdfa0b5924d.tar.gz dotfiles-0a0f019f4a9295c5c86de3ad4f238bdfa0b5924d.zip |
Email full status output on systemd completion
-rw-r--r-- | systemd/user/notify-email@.service | 2 | ||||
-rw-r--r-- | systemd/user/run-.service.d/50-notify-email.conf | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/systemd/user/notify-email@.service b/systemd/user/notify-email@.service index fba9cdaf..2d356c79 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 -a "X-systemd: %H %m %b" -s "[systemd] %i failure" %u' +ExecStart=sh -c 'systemctl --user status --full %i | mail -a "X-systemd: %H %m %b" -s "[systemd] %i failure" %u' TimeoutStartSec=1m diff --git a/systemd/user/run-.service.d/50-notify-email.conf b/systemd/user/run-.service.d/50-notify-email.conf index 4042a05b..e5a45b8c 100644 --- a/systemd/user/run-.service.d/50-notify-email.conf +++ b/systemd/user/run-.service.d/50-notify-email.conf @@ -2,4 +2,4 @@ OnFailure= [Service] -ExecStopPost=sh -c 'systemctl --user status %n | mail -a "X-systemd: %H %m %b" -s "[systemd] %n completed" %u' +ExecStopPost=sh -c 'systemctl --user status --full %n | mail -a "X-systemd: %H %m %b" -s "[systemd] %n completed" %u' |