Re: runit: run process in a tty

2020-10-17 Thread Jonathan de Boyne Pollard
Kian Kasad: Unable to open file: /dev/tty2: Operation not permitted. Operating systems do a whole bunch of stuff when connecting user programs to terminals, including changing the permissions of the terminal device file to allow the logged-in user access. If you check the terminal device

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

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