supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Érico Nogueira" <ericonr@disroot.org>
To: "Kian Kasad" <kian@kasad.com>, <supervision@list.skarnet.org>
Subject: Re: runit: run process in a tty
Date: Sat, 17 Oct 2020 01:50:23 -0300	[thread overview]
Message-ID: <C6EW9308X3KD.1VY2M1JWGSBD9@mussels> (raw)
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 >/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.

  reply	other threads:[~2020-10-17  4:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-17  0:35 Kian Kasad
2020-10-17  4:50 ` Érico Nogueira [this message]
2020-10-17 10:43 ` Jonathan de Boyne Pollard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C6EW9308X3KD.1VY2M1JWGSBD9@mussels \
    --to=ericonr@disroot.org \
    --cc=kian@kasad.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).