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 Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 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=shutdown.target
14 After=basic.target plymouth-start.service
15 Before=shutdown.target
18 Environment=HOME=/root
19 WorkingDirectory=/root
20 ExecStartPre=-/bin/plymouth quit
21 ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl" to view system logs. Type "systemctl reboot" to reboot.'
22 m4_ifdef(`TARGET_FEDORA',
23 `EnvironmentFile=/etc/sysconfig/init
24 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
25 m4_ifdef(`TARGET_MANDRIVA',
26 `EnvironmentFile=/etc/sysconfig/init
27 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
28 m4_ifdef(`TARGET_MAGEIA',
29 `EnvironmentFile=/etc/sysconfig/init
30 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
31 m4_ifdef(`TARGET_MEEGO',
32 `EnvironmentFile=/etc/sysconfig/init
33 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
34 `ExecStart=-/sbin/sulogin'))))
35 ExecStopPost=-@SYSTEMCTL@ --fail --no-block default
36 StandardInput=tty-force
37 StandardOutput=inherit
41 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash