aboutsummaryrefslogtreecommitdiff
path: root/systemd/user/notify-email@.service
blob: bddee12aa5b3dad45edc23c19787ee660f64c20f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=unit status mailer service for %i

[Service]
Type=oneshot
ExecStart=sh -c 'systemctl --user status %i | mail --append="From: systemd" --append="X-systemd: %H %m %b" --subject="[systemd] %i failure" %u'
# Hardening
DevicePolicy=closed
IPAddressDeny=any
PrivateMounts=true
PrivateTmp=true
ProtectControlGroups=true
ProtectHome=true
ProtectSystem=full
RemoveIPC=true
SystemCallErrorNumber=EPERM
UMask=027