diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-20 14:55:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-20 14:55:48 +1200 |
commit | a4727931461a0193cc8d21e8085187ac612718e6 (patch) | |
tree | 26f4b053b4632679f9fb80a3aa9d946d07ca4621 /systemd/user | |
parent | Stop dmenu_pass(1df) if no name selected (diff) | |
download | dotfiles-a4727931461a0193cc8d21e8085187ac612718e6.tar.gz dotfiles-a4727931461a0193cc8d21e8085187ac612718e6.zip |
Add systemd-run handling for mailing on completion
Diffstat (limited to 'systemd/user')
-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..ece1d93d --- /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 %n | mail -a "X-systemd: %H %m %b" -s "[systemd] %n success" %u' |