container-getty@.service 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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=Container Getty on /dev/pts/%I
  11. Documentation=man:agetty(8) man:systemd-getty-generator(8)
  12. Documentation=man:machinectl(1)
  13. After=systemd-user-sessions.service plymouth-quit-wait.service
  14. After=rc-local.service getty-pre.target
  15. Before=getty.target
  16. IgnoreOnIsolate=yes
  17. ConditionPathExists=/dev/pts/%I
  18. # IgnoreOnIsolate is an issue: when someone isolates rescue.target,
  19. # tradition expects that we shut down all but the main console.
  20. Conflicts=rescue.service
  21. Before=rescue.service
  22. [Service]
  23. # The '-o' option value tells agetty to replace 'login' arguments with an
  24. # option to preserve environment (-p), followed by '--' for safety, and then
  25. # the entered username.
  26. ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
  27. Type=idle
  28. Restart=always
  29. RestartSec=0
  30. UtmpIdentifier=pts/%I
  31. TTYPath=/dev/pts/%I
  32. TTYReset=yes
  33. TTYVHangup=yes
  34. KillMode=process
  35. IgnoreSIGPIPE=no
  36. SendSIGHUP=yes