From owner-freebsd-current@freebsd.org Sun Oct 18 15:52:19 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3E53A435C95 for ; Sun, 18 Oct 2020 15:52:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CDkst446Rz4fDW for ; Sun, 18 Oct 2020 15:52:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qv1-xf30.google.com with SMTP id de3so3302769qvb.5 for ; Sun, 18 Oct 2020 08:52:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CaERgYKw81i2o+j6PVBzZkhYlUsdg7MJTjF7jIHJB/Y=; b=q78bbHPx5XBzJorYVviwL6eNNIAQJEcMe7swRs2tJiBvy5H6q/RQsere+ncSxt9CZS yS7vS21vGpebIo3EDHsHkr4BN66d/8jjI9p6ARtjp6+8uVH+/P98GhuePv6xWPcvQd+5 nh7WoXIbb11JAFXX7WdhNmOMQyCvwnGWdUWGn3ScHcEEUYbBGYkcssG0kpWulvLzdk3l wqs+gtss+7BPI0DNLofmv0gj+SNSz1EXnoWDHvxtjge6KFR/3K9fAW2ib7vLBOEsUOaj sbUBD3MaAmFug2juGuV2ptLHL48TPf88/2dkEF4Ln69JMS5AlEMRl+Kelbb2XNseQPrP LbeA== X-Gm-Message-State: AOAM530tlJEafMCnGclRE9YVnTP8MXHeo8c4YGSBgX+0co94A5CyRAp9 uNrVNd7hBagxiDZAR1WP44UxONDGUampPpYzp0zWr73lmT/gMA== X-Google-Smtp-Source: ABdhPJzJt3m1ojf4RGk6bXlqrRzpdI/pWKWBlZXTCvioqvzBjK0BEYW9XrALbmZ5Wd9zPIlyv+N1AToG3tuvJApV+bo= X-Received: by 2002:a0c:e40c:: with SMTP id o12mr13377598qvl.29.1603036337354; Sun, 18 Oct 2020 08:52:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 18 Oct 2020 09:52:06 -0600 Message-ID: Subject: Re: bug in motd service / documentation To: Dan Mack Cc: FreeBSD Current X-Rspamd-Queue-Id: 4CDkst446Rz4fDW X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.22 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-0.94)[-0.942]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.96)[-0.962]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f30:from]; NEURAL_HAM_SHORT(-0.32)[-0.318]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2020 15:52:19 -0000 On Sat, Oct 17, 2020 at 2:46 PM Dan Mack 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