Changed systemd-notifier namings

This commit is contained in:
2023-12-03 11:24:17 +01:00
parent d3de68b216
commit 3120b23eb4
41 changed files with 93 additions and 93 deletions

View File

@@ -0,0 +1,15 @@
# Set default values for all following accounts.
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
account system_email
host {{system_email_host}}
port {{system_email_port}}
from {{system_email}}
user {{system_email_username}}
password {{system_email_password}}
account default : system_email

View File

@@ -0,0 +1,11 @@
#!/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
$(systemctl status --full "$1")
ERRMAIL

View File

@@ -0,0 +1,8 @@
[Unit]
Description=status email for %i to user
[Service]
Type=oneshot
ExecStart=/bin/bash {{systemd_notifier_email_folder}}systemd-notifier-email.sh %i
User=root
Group=systemd-journal