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 >/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-cbcda52b1a625e2c6b384056d5fba09297ffdf613786fe00b8c23c209bf3d7d7 - [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.