serial-getty@.service 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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=Serial Getty on %I
  9. Documentation=man:agetty(8) man:systemd-getty-generator(8)
  10. Documentation=http://0pointer.de/blog/projects/serial-console.html
  11. BindsTo=dev-%i.device
  12. After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
  13. After=rc-local.service
  14. # If additional gettys are spawned during boot then we should make
  15. # sure that this is synchronized before getty.target, even though
  16. # getty.target didn't actually pull it in.
  17. Before=getty.target
  18. IgnoreOnIsolate=yes
  19. [Service]
  20. Environment="TERM=xterm"
  21. ExecStart=-/sbin/agetty -8 -L %I 115200 $TERM
  22. Type=idle
  23. Restart=always
  24. RestartSec=0
  25. UtmpIdentifier=%I
  26. TTYPath=/dev/%I
  27. TTYReset=yes
  28. TTYVHangup=yes
  29. KillMode=process
  30. IgnoreSIGPIPE=no
  31. SendSIGHUP=yes
  32. [Install]
  33. WantedBy=getty.target