aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--README.md45
-rw-r--r--config.def.h2
-rwxr-xr-xexecute/echo.sh2
-rwxr-xr-xexecute/mail.sh2
-rw-r--r--journal-notify.c2
-rw-r--r--journal-notify.h2
-rw-r--r--systemd/journal-notify-sshd.service2
8 files changed, 45 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 32c9d46..2e914ef 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
-VERSION := 0.1.1
+VERSION := 0.1.2
all: journal-notify README.html
@@ -35,9 +35,9 @@ install: install-bin install-doc
install-bin: journal-notify
$(INSTALL) -D -m0755 journal-notify $(DESTDIR)/usr/bin/journal-notify
- $(INSTALL) -D -m0755 desktop/journal-notify-crit-alert-emerg.desktop $(DESTDIR)/usr/share/journal-notify/desktop/journal-notify-crit-alert-emerg.desktop
- $(INSTALL) -D -m0755 desktop/journal-notify-dhcpd.desktop $(DESTDIR)/usr/share/journal-notify/desktop/journal-notify-dhcpd.desktop
- $(INSTALL) -D -m0755 desktop/journal-notify-sshd.desktop $(DESTDIR)/usr/share/journal-notify/desktop/journal-notify-sshd.desktop
+ $(INSTALL) -D -m0644 desktop/journal-notify-crit-alert-emerg.desktop $(DESTDIR)/usr/share/journal-notify/desktop/journal-notify-crit-alert-emerg.desktop
+ $(INSTALL) -D -m0644 desktop/journal-notify-dhcpd.desktop $(DESTDIR)/usr/share/journal-notify/desktop/journal-notify-dhcpd.desktop
+ $(INSTALL) -D -m0644 desktop/journal-notify-sshd.desktop $(DESTDIR)/usr/share/journal-notify/desktop/journal-notify-sshd.desktop
$(INSTALL) -D -m0755 execute/echo.sh $(DESTDIR)/usr/share/journal-notify/execute/echo.sh
$(INSTALL) -D -m0755 execute/mail.sh $(DESTDIR)/usr/share/journal-notify/execute/mail.sh
$(INSTALL) -D -m0644 systemd/journal-notify-sshd.service $(DESTDIR)/usr/share/journal-notify/systemd/journal-notify-sshd.service
diff --git a/README.md b/README.md
index 5ff579c..570cca7 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,14 @@
journal-notify
==============
+[![GitHub stars](https://img.shields.io/github/stars/eworm-de/journal-notify?logo=GitHub&style=flat&color=red)](https://github.com/eworm-de/journal-notify/stargazers)
+[![GitHub forks](https://img.shields.io/github/forks/eworm-de/journal-notify?logo=GitHub&style=flat&color=green)](https://github.com/eworm-de/journal-notify/network)
+[![GitHub watchers](https://img.shields.io/github/watchers/eworm-de/journal-notify?logo=GitHub&style=flat&color=blue)](https://github.com/eworm-de/journal-notify/watchers)
+
**Notify about journal log entries**
-This runs in background and produces notifications whenever systemd journal
-logs an entry. Notifications look like this:
+This runs in the background and produces notifications whenever systemd
+journal logs an entry. Notifications look like this:
![Notification](screenshots/notification.png)
@@ -12,14 +16,18 @@ Before flooding the desktop this will throttle notifications:
![Throttling](screenshots/throttling.png)
+*Use at your own risk*, pay attention to
+[license and warranty](#license-and-warranty), and
+[disclaimer on external links](#disclaimer-on-external-links)!
+
Requirements
------------
To compile and run `journal-notify` you need:
-* [libnotify](https://developer.gnome.org/notification-spec/)
-* [libsystemd](https://www.github.com/systemd/systemd)
-* [markdown](https://daringfireball.net/projects/markdown/) (HTML documentation)
+* [libnotify ↗️](https://developer.gnome.org/notification-spec/)
+* [libsystemd ↗️](https://www.github.com/systemd/systemd)
+* [markdown ↗️](https://daringfireball.net/projects/markdown/) (HTML documentation)
* `gnome-icon-theme` (or whatever includes the icons you want to use)
To use `journal-notify` you probably want `systemd-journald`.
@@ -32,11 +40,11 @@ Build and install
Building and installing is very easy. Just run:
-> make
+ make
followed by:
-> make install
+ make install
This will place an executable at `/usr/bin/journal-notify`,
documentation can be found in `/usr/share/doc/journal-notify/`.
@@ -45,7 +53,7 @@ Usage
-----
To use `journal-notify` you need access to the journal log files. Make sure
-you get the expexted log entries by running `journalctl`. Possibly you have
+you get the expected log entries by running `journalctl`. Possibly you have
to add yourself to group `systemd-journal` or similar.
Just running `journal-notify` without parameter will show *all* log entries.
@@ -71,8 +79,7 @@ Be warned: This can flood your disktop with notifications.
The screenshot shown above resulted from this command:
-> journal-notify -m SYSLOG_IDENTIFIER=sshd -e -r "^(error:|Accepted)"
--i security-high
+ journal-notify -m SYSLOG_IDENTIFIER=sshd -e -r "^(error:|Accepted)" -i security-high
The command specified by `-x` is called with three options. Make sure
your executable understands these options:
@@ -107,6 +114,21 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[GNU General Public License](COPYING.md) for more details.
+Disclaimer on external links
+----------------------------
+
+Our website contains links to the websites of third parties ("external
+links"). As the content of these websites is not under our control, we
+cannot assume any liability for such external content. In all cases, the
+provider of information of the linked websites is liable for the content
+and accuracy of the information provided. At the point in time when the
+links were placed, no infringements of the law were recognisable to us.
+As soon as an infringement of the law becomes known to us, we will
+immediately remove the link in question.
+
+> 💡️ **Hint**: All external links are marked with an arrow pointing
+> diagonally in an up-right (or north-east) direction (↗️).
+
### Upstream
URL:
@@ -115,3 +137,6 @@ URL:
Mirror:
[eworm.de](https://git.eworm.de/cgit.cgi/journal-notify/)
[GitLab.com](https://gitlab.com/eworm-de/journal-notify#journal-notify)
+
+---
+[⬆️ Go back to top](#top)
diff --git a/config.def.h b/config.def.h
index 4991d4c..b45fb99 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,5 +1,5 @@
/*
- * (C) 2014-2021 by Christian Hesse <mail@eworm.de>
+ * (C) 2014-2025 by Christian Hesse <mail@eworm.de>
*
* 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
diff --git a/execute/echo.sh b/execute/echo.sh
index 03bd45d..7534621 100755
--- a/execute/echo.sh
+++ b/execute/echo.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# (C) 2014-2021 by Christian Hesse <mail@eworm.de>
+# (C) 2014-2025 by Christian Hesse <mail@eworm.de>
#
# 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
diff --git a/execute/mail.sh b/execute/mail.sh
index b672152..701a59d 100755
--- a/execute/mail.sh
+++ b/execute/mail.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# (C) 2014-2021 by Christian Hesse <mail@eworm.de>
+# (C) 2014-2025 by Christian Hesse <mail@eworm.de>
#
# 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
diff --git a/journal-notify.c b/journal-notify.c
index a00a570..2188869 100644
--- a/journal-notify.c
+++ b/journal-notify.c
@@ -1,5 +1,5 @@
/*
- * (C) 2014-2021 by Christian Hesse <mail@eworm.de>
+ * (C) 2014-2025 by Christian Hesse <mail@eworm.de>
*
* 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
diff --git a/journal-notify.h b/journal-notify.h
index 5eff51d..f329007 100644
--- a/journal-notify.h
+++ b/journal-notify.h
@@ -1,5 +1,5 @@
/*
- * (C) 2014-2021 by Christian Hesse <mail@eworm.de>
+ * (C) 2014-2025 by Christian Hesse <mail@eworm.de>
*
* 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
diff --git a/systemd/journal-notify-sshd.service b/systemd/journal-notify-sshd.service
index 6d12a76..fd31df6 100644
--- a/systemd/journal-notify-sshd.service
+++ b/systemd/journal-notify-sshd.service
@@ -1,4 +1,4 @@
-# (C) 2014-2021 by Christian Hesse <mail@eworm.de>
+# (C) 2014-2025 by Christian Hesse <mail@eworm.de>
#
# 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