console-shell.service 752 B

1234567891011121314151617181920212223242526272829
  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=Console Shell
  9. Documentation=man:sulogin(8)
  10. After=systemd-user-sessions.service plymouth-quit-wait.service
  11. After=rc-local.service
  12. Before=getty.target
  13. [Service]
  14. Environment=HOME=/home/root
  15. WorkingDirectory=-/home/root
  16. ExecStart=-/sbin/sulogin
  17. ExecStopPost=-/bin/systemctl poweroff
  18. Type=idle
  19. StandardInput=tty-force
  20. StandardOutput=inherit
  21. StandardError=inherit
  22. KillMode=process
  23. IgnoreSIGPIPE=no
  24. SendSIGHUP=yes
  25. [Install]
  26. WantedBy=getty.target