2010-07-13 06:04:14 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# See systemd.special(7) for details
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Rescue Shell
|
|
|
|
DefaultDependencies=no
|
2010-10-29 01:27:43 +08:00
|
|
|
Conflicts=multi-user.target shutdown.target
|
|
|
|
After=basic.target
|
2010-07-13 06:36:57 +08:00
|
|
|
Before=multi-user.target
|
2010-07-13 06:04:14 +08:00
|
|
|
|
|
|
|
[Service]
|
2010-09-10 22:53:53 +08:00
|
|
|
Environment=HOME=/root
|
2010-10-26 08:58:59 +08:00
|
|
|
Environment=TERM=vt100-nav
|
2010-10-06 08:43:06 +08:00
|
|
|
EnvironmentFile=/etc/sysconfig/init
|
2010-09-10 23:11:29 +08:00
|
|
|
WorkingDirectory=/root
|
2010-07-13 06:04:14 +08:00
|
|
|
ExecStartPre=-/bin/plymouth --hide-splash
|
2010-10-06 08:43:06 +08:00
|
|
|
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
|
|
|
|
ExecStart=-/bin/bash -c "exec $SINGLE"
|
|
|
|
ExecStopPost=/bin/systemctl default
|
2010-07-13 06:04:14 +08:00
|
|
|
StandardInput=tty-force
|
|
|
|
KillMode=process-group
|
|
|
|
|
2010-08-06 02:29:11 +08:00
|
|
|
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
2010-07-13 06:04:14 +08:00
|
|
|
# terminates cleanly.
|
2010-08-06 02:29:11 +08:00
|
|
|
KillSignal=SIGHUP
|