emergency.service 797 B

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