debug-shell.service 1.0 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=Early root shell on /dev/tty9 FOR DEBUGGING ONLY
  11. Documentation=man:systemd-debug-generator(8)
  12. DefaultDependencies=no
  13. IgnoreOnIsolate=yes
  14. ConditionPathExists=/dev/tty9
  15. [Service]
  16. Environment=TERM=linux
  17. ExecStart=/bin/bash
  18. Restart=always
  19. RestartSec=0
  20. StandardInput=tty
  21. TTYPath=/dev/tty9
  22. TTYReset=yes
  23. TTYVHangup=yes
  24. KillMode=process
  25. IgnoreSIGPIPE=no
  26. # bash ignores SIGTERM
  27. KillSignal=SIGHUP
  28. # Unset locale for the console getty since the console has problems
  29. # displaying some internationalized messages.
  30. UnsetEnvironment=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
  31. [Install]
  32. WantedBy=sysinit.target