What happened to the consoles?
Tom H
tomh0665 at gmail.com
Fri Mar 24 07:26:02 UTC 2017
On Thu, Mar 23, 2017 at 8:01 PM, MR ZenWiz <mrzenwiz at gmail.com> wrote:
> On Thu, Mar 23, 2017 at 2:57 PM, Tom H <tomh0665 at gmail.com> wrote:
>> if you enable a static getty, can you switch to it?
>
> I'm not sure what that means.
With systemd, an instance of agetty is launched on a VT by
systemd-logind when a user switches to that VT.
You can restore the sysvinit/upstart behavior (for example for VT2) by
running "systemctl enable getty at tty2.service". This will create
"/etc/systemd/system/getty.target.wants/getty at tty2.service ->
/lib/systemd/system/getty at .service" just like for tty1.
>> What's the output of
>> find /{etc,lib}/systemd/system -name "*getty*" -ls
>> and
>> grep VT /etc/systemd/logind.conf
>>
>> Is systemd-logind running?
>
> admar at marbase:~ $ find /{etc,lib}/systemd/system -name "*getty*" -ls
> /etc/systemd/system/getty.target.wants
> /etc/systemd/system/getty.target.wants/getty at tty1.service -> /lib/systemd/system/getty at .service
> /lib/systemd/system/console-getty.service
> /lib/systemd/system/container-getty at .service
> /lib/systemd/system/getty-static.service
> /lib/systemd/system/getty.target
> /lib/systemd/system/getty.target.wants
> /lib/systemd/system/getty.target.wants/getty-static.service -> ../getty-static.service
> /lib/systemd/system/getty at .service
> /lib/systemd/system/multi-user.target.wants/getty.target -> ../getty.target
> /lib/systemd/system/serial-getty at .service
>
> admar at marbase:~ $ grep VT /etc/systemd/logind.conf
> #NAutoVTs=6
> #ReserveVT=6
The default.
> admar at marbase:~ $ psg system-logind
> admar at marbase:~ $
So systemd-logind isn't running, unless "psg" isn't doing the right thing.
(on a 17.04 laptop)
# ps ax -o args | grep [l]ogin
/lib/systemd/systemd-logind
# systemctl status systemd-logind.service
● systemd-logind.service - Login Service
Loaded: loaded (/lib/systemd/system/systemd-logind.service; static;
vendor preset: enabled)
Active: active (running) since Fri 2017-03-24 04:57:15 GMT; 3min 43s ago
<snip>
#
More information about the ubuntu-users
mailing list