From owner-freebsd-questions@freebsd.org Wed Dec 16 06:34:26 2020 Return-Path: Delivered-To: freebsd-questions@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 B24B04B2603 for ; Wed, 16 Dec 2020 06:34:26 +0000 (UTC) (envelope-from rahulbharadwajpromos@gmail.com) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (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 4Cwlhx4LdXz4Tlk for ; Wed, 16 Dec 2020 06:34:25 +0000 (UTC) (envelope-from rahulbharadwajpromos@gmail.com) Received: by mail-il1-x12e.google.com with SMTP id x15so21614018ilq.1 for ; Tue, 15 Dec 2020 22:34:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=acph4tqhvwVVRJ5ZyfQNPlWcCDnvL8sC0dbaxHWvo24=; b=jXm3S6dqcQ0mXtvFWfLPaJLaMgQOXRNyHdQ7dSf+ojVB+EjpgjQ18KbtZitNOEY5zp jDminAVPe3VE4L9xqO8oyfSXO6IPiY1Cu3LNYh9eTDUFUmeWg5hrtCybXMZQrBoYiU3z FHxe3YRDGlU1rr4znyxdayuacETIs0iPKDAAA19nZHLGfjWQXVNZnttcgrY6CYOpSOXY FfFjm08abDfzXp9R+gzdNNNGQWaqylASXJxXXPnw7vuM+W5JFfUzjlzGvlBaVtWl2Liw k5SnxYI/1qXh5R4PmqFyyfD+a7KpNeEfBEQ0A9d7SN3p61pe0m0uRy4rUNGBCU4tdmI8 ZnTg== 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; bh=acph4tqhvwVVRJ5ZyfQNPlWcCDnvL8sC0dbaxHWvo24=; b=d+17CUrwD6VzeYP2X3CptlJ/4cpQu0fRfXznoWwjbGjw6iSzsgfMexEb2GA5RlaceK GanD5zLJ3pbTF5c3noiOsqM1bIgTPSFgwBUYMs6H0xtzNQVlyZoYSVi7OGGMMv9dNW0a dLG/h2CqjSaBFt5lBJWe/L/i0hnGb3ktzHlqPNV7xpyoMEpWgNsBVs3YkH4SWpExVYyu 6u4MMgSfQI5quFiDP7Ri/0prPVJ2o5jAGleudFc7A51QGz+Kt6W9uJPyron1xqu0aK6+ sKzOP/8PeGWSWmS0aNViDDDXCMjkIEW9gt5kk7ovTvBFOc7tSxXK9kKsZvFl4Xiv2B4J 7PFw== X-Gm-Message-State: AOAM5300WnP4DSz0zIDh0dj+wtXWaoLpzX+pMQEYTlvq9HW27ug037te XQJyTRzVHHuIBoN+UEkqMHP3RwmIWVch7n115/Gj/Tww4C2k3w== X-Google-Smtp-Source: ABdhPJyQH618CDw9MjKA3Sh4zViY04OUPMcjnNPCHlFoqiTAyqhbrjYrTkPQe7ac33EXxlQL1iIsck4Md2BPiZK2EPg= X-Received: by 2002:a92:da46:: with SMTP id p6mr31400793ilq.136.1608100464271; Tue, 15 Dec 2020 22:34:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rahul Bharadwaj Date: Wed, 16 Dec 2020 12:04:14 +0530 Message-ID: Subject: Re: Potential BUG: update_motd="YES" is prepending same text on ever reboot To: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 4Cwlhx4LdXz4Tlk X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jXm3S6dq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rahulbharadwajpromos@gmail.com designates 2607:f8b0:4864:20::12e as permitted sender) smtp.mailfrom=rahulbharadwajpromos@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::12e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::12e:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::12e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 06:34:26 -0000 Hi, Can anyone please see if they face the same issue with their FreeBSD machines. It is really annoying to see the same line printed several times on every restart. Thanks and Regards. On Tue, Dec 8, 2020 at 8:17 PM Rahul Bharadwaj < rahulbharadwajpromos@gmail.com> wrote: > Hi, > > My FreeBSD details are: > FreeBSD 11.3 > > I have the following option in my /etc/rc.conf: > *update_motd="YES"* > > Every time I reboot, the output from the "uname" command is prepended to > the previous reboot in the /etc/motd file. So on 3 restarts, it prints like > this: > > *$ ssh user@ip* > > *FreeBSD user 11.3 ...* > *FreeBSD user 11.3 ...* > *FreeBSD user 11.3 ...* > > ** > > > Here's what I have tried already: > - Searched the mailing list for any mention of "motd" or "update_motd". > None match my issue. > - Searched the FreeBSD bugzilla for "motd", there are 2 bugs, none of > which match my issue. > - Read the man page for rc.conf and motd, they don't give any hints on > bugs. > > So I'm not sure if this is even a bug. Can someone please help out on this. > > Thanks and Regards. > >