restic-systemd-automatic-ba.../etc/systemd/system/status-email-user@.service

12 lines
339 B
SYSTEMD
Raw Normal View History

# Source: https://serverfault.com/questions/876233/how-to-send-an-email-if-a-systemd-service-is-restarted
# Source: https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO
[Unit]
Description=Send status email for %i to user
[Service]
Type=oneshot
ExecStart=/usr/bin/notify-send "Backup Status:" %i
User=lerentis
Group=systemd-journal