bug in motd service / documentation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bug in motd service / documentation

Dan Mack
I've been away for a while and missed the change and complexity added to
/etc/motd.   I figured it out but I was led astray by not knowing that it
was converted into a service that only runs at boot time.  If you just
follow the instructions in the template file, you will nothing changes.

As a suggestion, maybe change this line in the /etc/motd.template file:

  Edit /etc/motd.template to change this login announcement.

to:

  Edit /etc/motd.template to change this login announcement and
  reboot or manually restart the motd service in /etc/rc.d/motd as in:

  /etc/rc.d/motd restart

and also add an entry to the man page for motd.

This was on:  FreeBSD boxolox 13.0-CURRENT FreeBSD 13.0-CURRENT #1
               r366790: Sat Oct 17 08:57:56 CDT 2020

Dan




_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bug in motd service / documentation

Dan Mack
On Sat, 17 Oct 2020, Dan Mack wrote:

> I've been away for a while and missed the change and complexity added to
> /etc/motd.   I figured it out but I was led astray by not knowing that it was
> converted into a service that only runs at boot time.  If you just follow the
> instructions in the template file, you will nothing changes.
>
> As a suggestion, maybe change this line in the /etc/motd.template file:
>
> Edit /etc/motd.template to change this login announcement.
>
> to:
>
> Edit /etc/motd.template to change this login announcement and
> reboot or manually restart the motd service in /etc/rc.d/motd as in:
>
> /etc/rc.d/motd restart
>
> and also add an entry to the man page for motd.
>
> This was on:  FreeBSD boxolox 13.0-CURRENT FreeBSD 13.0-CURRENT #1
>              r366790: Sat Oct 17 08:57:56 CDT 2020
Instead of just complaining, I've attached a diff of a proposed
fix.  Diff against base/head is here fwiw:
    https://github.com/danmack/freebsd/tree/motd-doc-fix

Dan




_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"

motd-fix-txt (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: bug in motd service / documentation

Warner Losh
On Sat, Oct 17, 2020 at 2:46 PM Dan Mack <[hidden email]> wrote:

> On Sat, 17 Oct 2020, Dan Mack wrote:
>
> > I've been away for a while and missed the change and complexity added to
> > /etc/motd.   I figured it out but I was led astray by not knowing that
> it was
> > converted into a service that only runs at boot time.  If you just
> follow the
> > instructions in the template file, you will nothing changes.
> >
> > As a suggestion, maybe change this line in the /etc/motd.template file:
> >
> > Edit /etc/motd.template to change this login announcement.
> >
> > to:
> >
> > Edit /etc/motd.template to change this login announcement and
> > reboot or manually restart the motd service in /etc/rc.d/motd as in:
> >
> > /etc/rc.d/motd restart
> >
> > and also add an entry to the man page for motd.
> >
> > This was on:  FreeBSD boxolox 13.0-CURRENT FreeBSD 13.0-CURRENT #1
> >              r366790: Sat Oct 17 08:57:56 CDT 2020
>
> Instead of just complaining, I've attached a diff of a proposed
> fix.  Diff against base/head is here fwiw:
>     https://github.com/danmack/freebsd/tree/motd-doc-fix


Thanks Dan. I'll commit this  if someone doesn't beat me to it.

Warner
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"