From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7477 invoked from network); 13 Jul 2020 10:41:03 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 13 Jul 2020 10:41:03 -0000 Received: (qmail 18639 invoked by uid 89); 13 Jul 2020 10:41:23 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 18632 invoked from network); 13 Jul 2020 10:41:23 -0000 From: "Laurent Bercot" To: Supervision Subject: Re: silent boot with runit Date: Mon, 13 Jul 2020 10:40:56 +0000 Message-Id: In-Reply-To: <20200713052307.jii33536txmlif7e@polarbear> References: <20200713052307.jii33536txmlif7e@polarbear> Reply-To: "Laurent Bercot" User-Agent: eM_Client/7.2.37929.0 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrvdekgdefudcutefuodetggdotffvucfrrhhofhhilhgvmecupfgfoffgtffkveetuefngfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkjghfrhgfgggtgfesthhqredttderjeenucfhrhhomhepfdfnrghurhgvnhhtuceuvghrtghothdfuceoshhkrgdqshhuphgvrhhvihhsihhonhesshhkrghrnhgvthdrohhrgheqnecuggftrfgrthhtvghrnheptdefkeeuteeikeethfevueevvedtkeegfefhueetvdeiieehudeuieduhedvteevnecuffhomhgrihhnpehskhgrrhhnvghtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuth >I was wondering if it is possible to get a silent boot without having to >modify runit itself. With systemd, the `quiet` kernel parameter acheives >this. Is there anything similar for runit to prevent messages being >displayed to the tty? No, runit hardcodes stdout and stderr to /dev/console. In order to silence things, you'd have to: - either redirect the console to something nonexistent or quiet on the kernel command line (would "console=3Dnull" work?) - or redirect stdout and stderr for the service you want to keep quiet. For instance, if you want the supervision tree to be quiet, you could add >/dev/null 2>&1 to the runsvdir invocation in /etc/runit/2. (With s6-linux-init, all of init's output is redirected to the default logger, and you have a switch for whether or not to also display it on the console.) >Also I tried looking in the mailing list archives, but neither site was >up. skarnet.org has been up for about 300 days. It is possible, however, that specific messages that you wanted to access in the archive did not display correctly. -- Laurent