aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-06-19 13:25:51 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-06-19 13:25:51 +0200
commitbabb114b66d3bbdbba9faa69bb1fdbae49f20172 (patch)
tree55b926846a74ccc0e3052f38bac40c985df222da /systemd
parent390605f72f19c3f5d033a57fd5e98d33fbc0d088 (diff)
downloadjournal-notify-babb114b66d3bbdbba9faa69bb1fdbae49f20172.tar.gz
journal-notify-babb114b66d3bbdbba9faa69bb1fdbae49f20172.tar.zst
update examples and add systemd unit
Diffstat (limited to 'systemd')
-rw-r--r--systemd/journal-notify-sshd.service9
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