From babb114b66d3bbdbba9faa69bb1fdbae49f20172 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 19 Jun 2015 13:25:51 +0200 Subject: update examples and add systemd unit --- systemd/journal-notify-sshd.service | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 systemd/journal-notify-sshd.service (limited to 'systemd') 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 -- cgit v1.2.3-54-g00ecf