16 lines
290 B
Plaintext
Raw Normal View History

#!/bin/bash
/usr/bin/sendmail -t <<ERRMAIL
To: {{administrator_email}}
2025-01-29 14:20:34 +01:00
From: systemd <{{system_email.from}}>
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