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
This commit is contained in:
imp 2020-10-19 01:16:39 +00:00
parent 397745991e
commit f103c610ff
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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).