aboutsummaryrefslogtreecommitdiffstats
path: root/share/man/man5/motd.5
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man5/motd.5')
-rw-r--r--share/man/man5/motd.521
1 files changed, 16 insertions, 5 deletions
diff --git a/share/man/man5/motd.5 b/share/man/man5/motd.5
index 2ffbc9e419bf..9feb0479b926 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 February 13, 1997
+.Dd July 20, 2019
.Dt MOTD 5
.Os
.Sh NAME
@@ -11,13 +11,16 @@
.Nd file containing message(s) of the day
.Sh DESCRIPTION
The file
-.Pa /etc/motd
+.Pa /var/run/motd
is normally displayed by
.Xr login 1
after a user has logged in but before the shell is run.
It is generally used for important system-wide announcements.
During system startup, a line containing the kernel version string is
-prepended to this file.
+prepended to
+.Pa /etc/motd.template
+and the contents are written to
+.Pa /var/run/motd .
.Pp
Individual users may suppress the display of this file by
creating a file named
@@ -26,11 +29,13 @@ in their home directories or through
.Xr login.conf 5 .
.Sh FILES
.Bl -tag -width $HOME/.hushlogin -compact
-.It Pa /etc/motd
+.It Pa /etc/motd.template
+The template file that system administrators can edit.
+.It Pa /var/run/motd
The message of the day.
.It Pa $HOME/.hushlogin
Suppresses output of
-.Pa /etc/motd .
+.Pa /var/run/motd .
.El
.Sh EXAMPLES
.Bd -literal
@@ -41,3 +46,9 @@ FreeBSD 2.1.6.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 1996
.Sh SEE ALSO
.Xr login 1 ,
.Xr login.conf 5
+.Sh HISTORY
+Prior to
+.Fx 13.0 ,
+.Nm
+lived in
+.Pa /etc .