getty@.service 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. [Unit]
  8. Description=Getty on %I
  9. Documentation=man:agetty(8) man:systemd-getty-generator(8)
  10. Documentation=http://0pointer.de/blog/projects/serial-console.html
  11. After=systemd-user-sessions.service plymouth-quit-wait.service
  12. After=rc-local.service
  13. # If additional gettys are spawned during boot then we should make
  14. # sure that this is synchronized before getty.target, even though
  15. # getty.target didn't actually pull it in.
  16. Before=getty.target
  17. IgnoreOnIsolate=yes
  18. # On systems without virtual consoles, don't start any getty. Note
  19. # that serial gettys are covered by serial-getty@.service, not this
  20. # unit.
  21. ConditionPathExists=/dev/tty0
  22. [Service]
  23. # the VT is cleared by TTYVTDisallocate
  24. ExecStart=-/sbin/agetty --noclear %I $TERM
  25. Type=idle
  26. Restart=always
  27. RestartSec=0
  28. UtmpIdentifier=%I
  29. TTYPath=/dev/%I
  30. TTYReset=yes
  31. TTYVHangup=yes
  32. TTYVTDisallocate=yes
  33. KillMode=process
  34. IgnoreSIGPIPE=no
  35. SendSIGHUP=yes
  36. # Unset locale for the console getty since the console has problems
  37. # displaying some internationalized messages.
  38. Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
  39. [Install]
  40. WantedBy=getty.target
  41. DefaultInstance=tty1