rescue.service 788 B

1234567891011121314151617181920212223242526272829
  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=Rescue Shell
  11. Documentation=man:sulogin(8)
  12. DefaultDependencies=no
  13. Conflicts=shutdown.target
  14. After=sysinit.target plymouth-start.service
  15. Before=shutdown.target
  16. [Service]
  17. Environment=HOME=/root
  18. WorkingDirectory=-/root
  19. ExecStartPre=-/bin/plymouth --wait quit
  20. ExecStart=-/lib/systemd/systemd-sulogin-shell rescue
  21. Type=idle
  22. StandardInput=tty-force
  23. StandardOutput=inherit
  24. StandardError=inherit
  25. KillMode=process
  26. IgnoreSIGPIPE=no
  27. SendSIGHUP=yes