mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 18:55:03 +01:00
16 lines
285 B
Django/Jinja
16 lines
285 B
Django/Jinja
#!/bin/bash
|
|
|
|
/usr/bin/sendmail -t <<ERRMAIL
|
|
To: {{administrator_email}}
|
|
From: systemd <{{system_email}}>
|
|
Subject: $1
|
|
Content-Transfer-Encoding: 8bit
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
A problem with the service $1 occured:
|
|
|
|
$(systemctl status --full "$1" | head -n 30)
|
|
|
|
|
|
ERRMAIL
|