Ask Your Question
2

How to disable a specific virtual terminal with systemd-loginctl autovt?

asked 2012-04-29 19:50:58 -0500

jcdebast gravatar image

updated 2014-09-28 19:16:05 -0500

mether gravatar image

systemd-loginctl seems to initialize virtual-terminals via autovt@.service in a static range from 1 to NAutoVTs (/etc/systemd/systemd-logind.conf). It is noted in the systemd-loginctl documentation that it will ignore tty's in use.

What I need to figure out is either how to mark tty2 as in-use, or otherwise pre-empt systemd-loginctl from utilizing tty2. Any suggestions?

Background: I'm in the process of breaking away from Ubuntu and Debian-based distributions. Which have the slightly less efficient, yet, significantly more intuitive upstart service. I like having a couple virtual terminals available for the occasional emergency. I usually place these on the far-side from my x-session and utilize the closer virtual consoles for various custom services. Most these services utilize getty to initiate via auto-login and pose no concern with systemd. However, I have one that needs to take over a tty after the virtual terminals have been or could be initialized. This service is not always up so there are times that tty would not actually be in use. To this end I need to disable the start-up of any virtual terminal on that tty.

Fedora 16 KDE 64-bit

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-02-14 10:42:15 -0500

lennart gravatar image

Genreally, VTs are handed out first-come-first-serve. X will allocate the first available VT, as you start a new X instance. If you switch to one of the NAutoVT= VTs and nothing is running on them yet, then logind will spawn a getty for you on it. Also, as a special exception tty6 is always allocated for a getty (which can be configured as ReserveVT=).

This way we always run as few gettys as necessary, under all conditions, but still always have one getty around for emergencies.

edit flag offensive delete link more
0

answered 2012-05-06 14:58:51 -0500

FranciscoD_ gravatar image

Perhaps you could try the systemd mailing list:

http://lists.freedesktop.org/mailman/listinfo/systemd-devel

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-04-29 19:50:58 -0500

Seen: 4,243 times

Last updated: Feb 14 '13