debug-shell.service 487 B

12345678910111213141516171819202122232425
  1. [Unit]
  2. Description=Debug Shell
  3. DefaultDependencies=no
  4. ConditionKernelCommandLine=|tty
  5. ConditionKernelCommandLine=|debugging
  6. ConditionPathExists=|/storage/.cache/debug.libreelec
  7. [Service]
  8. Environment=TTY=3
  9. WorkingDirectory=/storage
  10. ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh'
  11. Restart=always
  12. RestartSec=0
  13. StandardInput=tty
  14. TTYPath=/dev/tty3
  15. TTYReset=yes
  16. TTYVHangup=yes
  17. KillMode=process
  18. IgnoreSIGPIPE=no
  19. # bash ignores SIGTERM
  20. KillSignal=SIGHUP
  21. [Install]
  22. WantedBy=sysinit.target