]>
Commit | Line | Data |
---|---|---|
0667db89 LP |
1 | # This file is part of systemd. |
2 | # | |
3 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
4 | # under the terms of the GNU Lesser General Public License as published by |
5 | # the Free Software Foundation; either version 2.1 of the License, or | |
0667db89 LP |
6 | # (at your option) any later version. |
7 | ||
0667db89 LP |
8 | [Unit] |
9 | Description=Rescue Shell | |
744881d1 | 10 | Documentation=man:sulogin(8) |
0667db89 | 11 | DefaultDependencies=no |
de47ca9b | 12 | Conflicts=shutdown.target |
49e7f027 | 13 | After=sysinit.target plymouth-start.service |
de47ca9b | 14 | Before=shutdown.target |
0667db89 LP |
15 | |
16 | [Service] | |
739848d4 | 17 | Environment=HOME=/root |
1fd116f7 | 18 | WorkingDirectory=/root |
be12dd0c | 19 | ExecStartPre=-/bin/plymouth quit |
42377d6b | 20 | ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" or ^D to\\nboot into default mode.' |
903e7c37 | 21 | ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default" |
f2b68789 | 22 | Type=idle |
0667db89 | 23 | StandardInput=tty-force |
cbe82694 MS |
24 | StandardOutput=inherit |
25 | StandardError=inherit | |
cd25cce9 | 26 | KillMode=process |
82659fd7 LP |
27 | IgnoreSIGPIPE=no |
28 | SendSIGHUP=yes |