diff options
Diffstat (limited to 'systemd/journal-notify-sshd.service')
-rw-r--r-- | systemd/journal-notify-sshd.service | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/systemd/journal-notify-sshd.service b/systemd/journal-notify-sshd.service new file mode 100644 index 0000000..772fbe2 --- /dev/null +++ b/systemd/journal-notify-sshd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Notify about SSHD journal log entries + +[Service] +Type=simple +ExecStart=/usr/bin/journal-notify -m SYSLOG_IDENTIFIER=sshd -e -r "^(error:|Accepted)" -X /path/to/updated/execute/mail.sh + +[Install] +WantedBy=multi-user.target |