update-motd

Dynamically update /etc/motd without relying on pam_motd
git clone git://git.danielmoch.com/update-motd.git
Log | Files | Refs

commit f8ca311f734b4811f57f3006ed2ec41964c13dd6
parent b35349dc259044e837875766a903372e5444f733
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat,  9 Feb 2019 11:00:11 -0500

Fix issues due to relocation

Diffstat:
Mcontrib/archlinux/motd.hook | 2+-
Acontrib/archlinux/motd.service | 6++++++
Acontrib/archlinux/motd.timer | 10++++++++++
3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/contrib/archlinux/motd.hook b/contrib/archlinux/motd.hook @@ -7,4 +7,4 @@ Target = * [Action] Description = Updating motd When = PostTransaction -Exec = /etc/update-motd -f +Exec = /usr/lib/update-motd/update-motd -f diff --git a/contrib/archlinux/motd.service b/contrib/archlinux/motd.service @@ -0,0 +1,6 @@ +[Unit] +Description=Dynamic MOTD updater service + +[Service] +Type=oneshot +ExecStart= /usr/lib/update-motd/update-motd diff --git a/contrib/archlinux/motd.timer b/contrib/archlinux/motd.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Dynamic MOTD updater timer + +[Timer] +OnActiveSec=1m +OnUnitActiveSec=1h +Persistent=yes + +[Install] +WantedBy=timers.target