Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
Service to generate MOTD for Fedora
Python Shell
Branch: master
Clone or download
rtnpro Fixes #8: Replace cron jobs with systemd timer
Move cron job for motdgen-cache-updateinfo with systemd.timer.
Latest commit 06859c5 Feb 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dnf/plugins Fix script name for caching updateinfo in dnf plugin. Mar 10, 2016
motdgen.d
pam.d Put all working files under /var/run/motdgen May 9, 2016
tunirtests Make tunir job file generic and add README for tests. Oct 5, 2016
.gitignore Initial commit Jan 6, 2016
LICENSE Initial commit Jan 6, 2016
MANIFEST.in Fixes #8: Replace cron jobs with systemd timer Feb 22, 2017
README.md Fix typo in README. Oct 5, 2016
motdgen
motdgen-cache-updateinfo Create /var/run/motdgen during runtime May 9, 2016
motdgen-cache-updateinfo.service Fixes #8: Replace cron jobs with systemd timer Feb 22, 2017
motdgen-cache-updateinfo.timer Fixes #8: Replace cron jobs with systemd timer Feb 22, 2017
motdgen.service Added service file for motdgen. May 5, 2016
motdgen.sh Put all working files under /var/run/motdgen May 9, 2016
setup.py Fixes #8: Replace cron jobs with systemd timer Feb 22, 2017

README.md

motdgen

Generate dynamic MOTD: Message of the day

Setup

sudo python setup.py install
sudo echo "session    include      motdgen" >> /etc/pam.d/sshd
sudo motdgen-cache-dnfupdateinfo

or, just

[sudo] dnf install fedora-motd

Usage

On ssh login to the machine, you should see something like:

Last login: Thu Feb  4 22:39:21 2016 from 127.0.0.1
 22:39:58 up 17 days, 13:52,  6 users,  load average: 0.88, 0.68, 0.46
Updates Information Summary: available
    34 Security notice(s)
    66 Bugfix notice(s)
    26 Enhancement notice(s)
     1 other notice(s)

Tests

You can’t perform that action at this time.