diff options
Diffstat (limited to 'systemd/user/run-.service.d/50-notify-email.conf')
-rw-r--r-- | systemd/user/run-.service.d/50-notify-email.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/systemd/user/run-.service.d/50-notify-email.conf b/systemd/user/run-.service.d/50-notify-email.conf new file mode 100644 index 00000000..e5a45b8c --- /dev/null +++ b/systemd/user/run-.service.d/50-notify-email.conf @@ -0,0 +1,5 @@ +[Unit] +OnFailure= + +[Service] +ExecStopPost=sh -c 'systemctl --user status --full %n | mail -a "X-systemd: %H %m %b" -s "[systemd] %n completed" %u' |