runit: run process in a tty

2020-10-16 Thread Kian Kasad
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. I tried the openvt(1) program, which has a flag `-e` to exec the program instead of forking it: openvt -ec 2

Re: runit: run process in a tty

2020-10-16 Thread Érico Nogueira
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