From 618cdd89645f0a6af3ef85c59fda975888ae83f8 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 19 Oct 2020 01:16:39 +0000 Subject: [PATCH] Add more explicit instructions about updating motd Not that you can regenerate the motd by editing motd.template and running 'service motd restart' rather than rebooting. Small wordsmithing by me, and updated the example from FreeBSD 2.1.6.1 release to 12.1 release. Submitted by: Dan Mack --- share/man/man5/motd.5 | 12 ++++++++++-- usr.bin/login/motd.template | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/share/man/man5/motd.5 b/share/man/man5/motd.5 index 9feb0479b926..d293e93fdcd6 100644 --- a/share/man/man5/motd.5 +++ b/share/man/man5/motd.5 @@ -3,7 +3,7 @@ .\" This file is in the public domain. .\" $FreeBSD$ .\" -.Dd July 20, 2019 +.Dd October 18, 2020 .Dt MOTD 5 .Os .Sh NAME @@ -22,6 +22,14 @@ prepended to and the contents are written to .Pa /var/run/motd . .Pp +.Pa /var/run/motd +can be updated without a system reboot by manually restarting the +motd service after updating +.Pa /etc/motd.template: +.Bd -literal -offset -ident -compact +service motd restart +.Ed +.Pp Individual users may suppress the display of this file by creating a file named .Dq Pa .hushlogin @@ -39,7 +47,7 @@ Suppresses output of .El .Sh EXAMPLES .Bd -literal -FreeBSD 2.1.6.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 1996 +FreeBSD 12.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 2019 /home is full. Please cleanup your directories. .Ed diff --git a/usr.bin/login/motd.template b/usr.bin/login/motd.template index 80d790959802..ea98a3266c3a 100644 --- a/usr.bin/login/motd.template +++ b/usr.bin/login/motd.template @@ -17,4 +17,4 @@ Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier -Edit /etc/motd.template to change this login announcement. +To change this login announcement, see motd(5).