aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-07-20 20:52:23 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-07-20 20:52:23 +1200
commit0a0f019f4a9295c5c86de3ad4f238bdfa0b5924d (patch)
treeff6175ffc91a9c09d1fe755e8d34605bb81cc16b
parentEmail on systemd-run is "completion" not "success" (diff)
downloaddotfiles-0a0f019f4a9295c5c86de3ad4f238bdfa0b5924d.tar.gz
dotfiles-0a0f019f4a9295c5c86de3ad4f238bdfa0b5924d.zip
Email full status output on systemd completion
-rw-r--r--systemd/user/notify-email@.service2
-rw-r--r--systemd/user/run-.service.d/50-notify-email.conf2
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'