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 10:09:36 +08:00
|
|
|
Conflicts=shutdown.target
|
2010-10-29 01:27:43 +08:00
|
|
|
After=basic.target
|
2010-10-29 10:09:36 +08:00
|
|
|
Before=shutdown.target
|
2010-07-13 06:04:14 +08:00
|
|
|
|
|
|
|
[Service]
|
2010-09-10 22:53:53 +08:00
|
|
|
Environment=HOME=/root
|
2010-09-10 23:11:29 +08:00
|
|
|
WorkingDirectory=/root
|
2011-02-24 01:42:08 +08:00
|
|
|
ExecStartPre=-/bin/plymouth quit
|
2010-10-06 08:43:06 +08:00
|
|
|
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
|
2010-10-29 10:09:36 +08:00
|
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
2010-10-29 22:27:58 +08:00
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
2011-03-09 02:47:29 +08:00
|
|
|
m4_ifdef(`TARGET_MANDRIVA',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
2011-04-20 03:37:51 +08:00
|
|
|
`ExecStart=-/sbin/sulogin'
|
|
|
|
m4_ifdef(`TARGET_MEEGO',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',)))
|
2011-04-14 05:29:51 +08:00
|
|
|
ExecStopPost=-/bin/systemctl --fail --no-block default
|
2010-07-13 06:04:14 +08:00
|
|
|
StandardInput=tty-force
|
2011-03-30 05:31:38 +08:00
|
|
|
KillMode=process
|
2010-07-13 06:04:14 +08:00
|
|
|
|
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
|