console-getty.service 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  5. # systemd is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or
  8. # (at your option) any later version.
  9. [Unit]
  10. Description=Console Getty
  11. Documentation=man:agetty(8) man:systemd-getty-generator(8)
  12. After=systemd-user-sessions.service plymouth-quit-wait.service
  13. After=rc-local.service getty-pre.target
  14. Before=getty.target
  15. # OCI containers may be run without a console
  16. ConditionPathExists=/dev/console
  17. [Service]
  18. # The '-o' option value tells agetty to replace 'login' arguments with an
  19. # option to preserve environment (-p), followed by '--' for safety, and then
  20. # the entered username.
  21. ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud console 115200,38400,9600 $TERM
  22. Type=idle
  23. Restart=always
  24. UtmpIdentifier=cons
  25. TTYPath=/dev/console
  26. TTYReset=yes
  27. TTYVHangup=yes
  28. KillMode=process
  29. IgnoreSIGPIPE=no
  30. SendSIGHUP=yes
  31. [Install]
  32. WantedBy=getty.target