mirror of https://github.com/erikw/restic-systemd-automatic-backup without B2
This commit is contained in:
11
etc/systemd/system/status-email-user@.service
Normal file
11
etc/systemd/system/status-email-user@.service
Normal file
@ -0,0 +1,11 @@
|
||||
# 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
|
Reference in New Issue
Block a user