| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | # |
| 3 | # This file is modified from from file /lib/systemd/system/rescue.service, |
| 4 | # which is part of systemd. |
| 5 | # |
| 6 | # systemd is free software; you can redistribute it and/or modify it |
| 7 | # under the terms of the GNU Lesser General Public License as published by |
| 8 | # the Free Software Foundation; either version 2.1 of the License, or |
| 9 | # (at your option) any later version. |
| 10 | |
| 11 | [Unit] |
| 12 | Description=Rescue Shell |
| 13 | Documentation=man:sulogin(8) |
| 14 | DefaultDependencies=no |
| 15 | Conflicts=shutdown.target |
| 16 | #After=sysinit.target plymouth-start.service |
| 17 | Before=shutdown.target |
| 18 | Requires=ocsd-run.service |
| 19 | After=ocsd-run.service |
| 20 | |
| 21 | [Service] |
| 22 | Environment=HOME=/root |
| 23 | WorkingDirectory=-/root |
| 24 | ExecStartPre=-/bin/plymouth --wait quit |
| 25 | ExecStart=-/lib/systemd/systemd-sulogin-shell rescue |
| 26 | Type=idle |
| 27 | StandardInput=tty-force |
| 28 | StandardOutput=inherit |
| 29 | StandardError=inherit |
| 30 | KillMode=process |
| 31 | IgnoreSIGPIPE=no |
| 32 | SendSIGHUP=yes |