Based on https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO This can easily be used by other services, with one line added to the [Unit] section of a service: OnFailure=status-email-ops@%n.service Refs #3
9 lines
159 B
Desktop File
9 lines
159 B
Desktop File
[Unit]
|
|
Description=status email for %i to ops
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/local/sbin/systemd-email <%= @email %> %i
|
|
User=root
|
|
Group=systemd-journal
|