1 # This file is part of systemd.
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # See systemd.special(7) for details
11 Description=Rescue Shell
12 DefaultDependencies=no
13 Conflicts=multi-user.target
15 Before=multi-user.target
18 Environment=HOME=/root
19 EnvironmentFile=/etc/sysconfig/init
20 WorkingDirectory=/root
21 ExecStartPre=-/bin/plymouth --hide-splash
22 ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
23 ExecStart=-/bin/bash -c "exec $SINGLE"
24 ExecStopPost=/bin/systemctl default
25 StandardInput=tty-force
26 KillMode=process-group
28 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash