diff options
author | Christian Hesse <mail@eworm.de> | 2015-06-19 13:25:51 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-06-19 13:25:51 +0200 |
commit | babb114b66d3bbdbba9faa69bb1fdbae49f20172 (patch) | |
tree | 55b926846a74ccc0e3052f38bac40c985df222da /systemd/journal-notify-sshd.service | |
parent | 390605f72f19c3f5d033a57fd5e98d33fbc0d088 (diff) | |
download | journal-notify-babb114b66d3bbdbba9faa69bb1fdbae49f20172.tar.gz journal-notify-babb114b66d3bbdbba9faa69bb1fdbae49f20172.tar.zst |
update examples and add systemd unit
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 |