# (C) 2014-2024 by Christian Hesse # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. [Unit] Description=Notify about SSHD journal log entries Requires=dbus.socket PartOf=graphical-session.target # Order after notification daemons to make sure it is stopped before. After=dunst.service xfce4-notifyd.service ConditionUser=!@system [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