[systemd-devel] Launch at tty7

Lennart Poettering lennart at poettering.net
Tue Oct 30 08:37:34 UTC 2018


On Di, 30.10.18 11:34, deepan muthusamy (deepan.m2903 at gmail.com) wrote:

> I have one doubt that, if I launch app1 under tty1 andapp2 at tty7. If I
> add after dependency in app2 for app1( After=app1.service in app2.service).
> will this dependency work?

Why wouldn't it?

> How to launch an application at specific try(like under tty7)?

Use this in your unit file:

…
[Service]
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty7
…

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list