From owner-freebsd-questions@freebsd.org Tue Dec 8 14:48:03 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 ADDAA4A248C for ; Tue, 8 Dec 2020 14:48:03 +0000 (UTC) (envelope-from rahulbharadwajpromos@gmail.com) Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (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 4Cr32B4Ycbz3wNP for ; Tue, 8 Dec 2020 14:48:02 +0000 (UTC) (envelope-from rahulbharadwajpromos@gmail.com) Received: by mail-il1-x134.google.com with SMTP id x15so15729912ilq.1 for ; Tue, 08 Dec 2020 06:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LPqzc8ncNLJqiym/crW7yYx6x0+fuc5Kb4iGmcTtOPo=; b=AfOCgPNcWkxz9E4ImpkZf6UMNPMk1TrZepmZERaJ0nJuXcFshF/COEwN/sb/VSmUrb /aGkAWrFbkfA5oylMYDjnZ74hYx2lwHnbu70noHBswDLoW2Vp/zH7fYPN0wHcUjN3uZf kDo1U4fzODnKK5Q9fPMNBCXt3wbr/xxC2aY9+G5Hbz5YuJ1TA5PgOw8Jo5mbxNc18Pmk JxefjTBUeaiQrlvn00VJEw42tQLFknyFXFymjTZlzEGddqmlqh5UbdISxJeTaa6C82dk V0z0RIb07sfAJsGixfIXVsYzhkOjqVmfYeBWP8dQnJy/TEdjwd9pj2uQBR00YxIhjuwI G3YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LPqzc8ncNLJqiym/crW7yYx6x0+fuc5Kb4iGmcTtOPo=; b=LlyVPKHVwawfd3qCUYF93t32w0saDQQtpdmcaYvkBCqw3Me7uVts/ObyTeMLKw8oix Vd2JANDA1tiy0IoubfjZo1U247ecA+8yjI4FsPMS5z8R4yAs+P2uPwa/u1FRI+rG5FlU 9s/+oDFrvjtBr/cxNuwZpRXmJZIFmsxQE2Yk2TYVC3JOSeN0wGnlZFMjRETi9EOWIpTt Mfn7v39ClZntJjytM3l0jBbMmXWTwJIs9ULXbFzwnOX0M8cpLJ4seacqxmRZ+ohkx63r X2x1cHiDlOzgwnYElhfKg3owlrqEcpLmoW/F1bbk3lUQaMS8h8jMDz2cRHXL5hXCg283 yrbg== X-Gm-Message-State: AOAM5302PRNK/Q7SB2oGWLAI1mM9Xk1S5X3trSjFQZlMTw3HSrDi8e9P G3IQxlfLzSLJweZfi9EdP8HwQsB0y3DX5VXvwuYbua4XdQ5Tdg== X-Google-Smtp-Source: ABdhPJwatLQ3t/kfibKMdt2k6/gSikSn8D6BIXzfT6zualcmR91zJyJRia+JY1UeiaU68Dt4LvoU90YAiR6WHohX7yM= X-Received: by 2002:a05:6e02:c62:: with SMTP id f2mr16277316ilj.51.1607438880944; Tue, 08 Dec 2020 06:48:00 -0800 (PST) MIME-Version: 1.0 From: Rahul Bharadwaj Date: Tue, 8 Dec 2020 20:17:49 +0530 Message-ID: Subject: Potential BUG: update_motd="YES" is prepending same text on ever reboot To: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 4Cr32B4Ycbz3wNP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=AfOCgPNc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rahulbharadwajpromos@gmail.com designates 2607:f8b0:4864:20::134 as permitted sender) smtp.mailfrom=rahulbharadwajpromos@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::134: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::134:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::134: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: Tue, 08 Dec 2020 14:48:03 -0000 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.