mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
84a69ca9ba
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.
35 lines
923 B
Plaintext
35 lines
923 B
Plaintext
# 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.
|
|
|
|
# These ones should be enabled by default, even if distributions
|
|
# generally follow a default-off policy.
|
|
|
|
enable remote-fs.target
|
|
enable machines.target
|
|
|
|
enable getty@.service
|
|
enable systemd-timesyncd.service
|
|
enable systemd-networkd.service
|
|
enable systemd-resolved.service
|
|
enable systemd-networkd-wait-online.service
|
|
|
|
disable console-getty.service
|
|
disable debug-shell.service
|
|
|
|
disable halt.target
|
|
disable kexec.target
|
|
disable poweroff.target
|
|
enable reboot.target
|
|
disable rescue.target
|
|
disable exit.target
|
|
|
|
disable syslog.socket
|
|
|
|
disable systemd-journal-gatewayd.*
|
|
disable systemd-journal-remote.*
|
|
disable systemd-journal-upload.*
|