add systemd timer for backups
This commit is contained in:
parent
baa9bd7bed
commit
6c214a2330
6 changed files with 59 additions and 0 deletions
4
templates/status-email-root.j2
Executable file
4
templates/status-email-root.j2
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
systemctl status "$1" | mail -s "service $1 failed on $( hostname )" root || true
|
||||
Loading…
Add table
Add a link
Reference in a new issue