mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
console-shell.service was supposed to be useful for normal clean boots (i.e. multi-user.target or so), as a replacement for logind/getty@.service for simpler use cases. But due to the lack of documentation and sanity check one can easily be confused and enable this service in // with getty@.service. In this case we end up with both services sharing the same tty which ends up in strange results. Even worse, console-shell.service might be failing while getty@.service tries to acquire the terminal which ends up in the system to poweroff since console-shell.service uses: "ExecStopPost=-/usr/bin/systemctl poweroff". Another issue: this service doesn't work well if plymouth is also used since it lets the splash screen program run and mess the tty (at least a "plymouth quit" is missing). So let's kill it for now.
This commit is contained in:
parent
7a9ee77204
commit
84a69ca9ba
@ -524,7 +524,6 @@ dist_systemunit_DATA_busnames += \
|
||||
nodist_systemunit_DATA = \
|
||||
units/getty@.service \
|
||||
units/serial-getty@.service \
|
||||
units/console-shell.service \
|
||||
units/console-getty.service \
|
||||
units/container-getty@.service \
|
||||
units/systemd-initctl.service \
|
||||
@ -587,7 +586,6 @@ dist_systempreset_DATA = \
|
||||
EXTRA_DIST += \
|
||||
units/getty@.service.m4 \
|
||||
units/serial-getty@.service.m4 \
|
||||
units/console-shell.service.m4.in \
|
||||
units/console-getty.service.m4.in \
|
||||
units/container-getty@.service.m4.in \
|
||||
units/rescue.service.in \
|
||||
|
@ -18,7 +18,6 @@ enable systemd-resolved.service
|
||||
enable systemd-networkd-wait-online.service
|
||||
|
||||
disable console-getty.service
|
||||
disable console-shell.service
|
||||
disable debug-shell.service
|
||||
|
||||
disable halt.target
|
||||
|
2
units/.gitignore
vendored
2
units/.gitignore
vendored
@ -1,8 +1,6 @@
|
||||
/user@.service.m4
|
||||
/console-getty.service
|
||||
/console-getty.service.m4
|
||||
/console-shell.service
|
||||
/console-shell.service.m4
|
||||
/container-getty@.service
|
||||
/container-getty@.service.m4
|
||||
/debug-shell.service
|
||||
|
@ -1,31 +0,0 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
[Unit]
|
||||
Description=Console Shell
|
||||
Documentation=man:sulogin(8)
|
||||
After=systemd-user-sessions.service plymouth-quit-wait.service
|
||||
m4_ifdef(`HAVE_SYSV_COMPAT',
|
||||
After=rc-local.service
|
||||
)m4_dnl
|
||||
Before=getty.target
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/root
|
||||
WorkingDirectory=-/root
|
||||
ExecStart=-@SULOGIN@
|
||||
ExecStopPost=-@SYSTEMCTL@ poweroff
|
||||
Type=idle
|
||||
StandardInput=tty-force
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
KillMode=process
|
||||
IgnoreSIGPIPE=no
|
||||
SendSIGHUP=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=getty.target
|
Loading…
Reference in New Issue
Block a user