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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17398 invoked from network); 17 Oct 2020 04:57:40 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2020 04:57:40 -0000 Received: (qmail 6041 invoked by uid 89); 17 Oct 2020 04:58:04 -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 6034 invoked from network); 17 Oct 2020 04:58:04 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1602910654; bh=EMzgtdADzUVTEQeeNdZfZBxXCPnmw41X5DzF3WoILPE=; h=From:To:Subject:Date:In-Reply-To; b=lpOtfUwEuL3mpnVxqUcUFCW/aelgL85MJ58AmsFtABr91OEeHxpGnCkQWTeIDEPbM V2rCStEXOktBkiwqSWyUJxLLNa5ZuXrTmPm6wkRb2nbfG7h0IRTmtCqUFLXN6RQW1k cEyD43nKMliXIUiiQDvLg8e6fxWaG2UUU32fXeFlZolbhRxn9iW3EA2wU4HZ5IfRF7 //NfrVB50tqVICUIshrFMGLFiOSBHIL9hjsAxYWZku0+2uGBQtLETh+EddacVdGDAG +0Y8yLboOBMqfC/c1mNGE4ntPG1kKGPGCexnpiYJ779fYmrAvilXOqRI5bw4chs3YS BeU5HAS3M+WHw== Content-Type: text/plain; charset=UTF-8 From: =?utf-8?q?=C3=89rico_Nogueira?= To: "Kian Kasad" , Subject: Re: runit: run process in a tty Date: Sat, 17 Oct 2020 01:50:23 -0300 Message-Id: In-Reply-To: <20201017003545.6k2vys6psg4izccg@frisbee> On Fri Oct 16, 2020 at 2:35 PM -03, Kian Kasad wrote: > I'm trying to have a runit service spawn `/usr/bin/ly` in a certain tty > (tty2). I've tried redirecting std{in,out,err} to the tty: > > exec /usr/bin/ly /dev/tty2 2>&1 > > but this didn't work. > As far as I know, ly wants to be explicitly configured for a certain tty, instead of supporting being launched anywhere. Even then, it might still require quite a bit of work to function properly. You can see a service for it in a PR for Void Linux [1]. For anyone curious, ly is a TUI display manager [2]. - [1] https://github.com/void-linux/void-packages/pull/24038/files#diff-cbc= da52b1a625e2c6b384056d5fba09297ffdf613786fe00b8c23c209bf3d7d7 - [2] https://github.com/nullgemm/ly > I tried the openvt(1) program, which has a flag `-e` to exec the program > instead of forking it: I don't know anything about openvt, unfortunately.