2010-07-13 05:04:14 +07: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 09:09:36 +07:00
|
|
|
Conflicts=shutdown.target
|
2011-09-23 04:52:38 +07:00
|
|
|
After=basic.target plymouth-start.service
|
2010-10-29 09:09:36 +07:00
|
|
|
Before=shutdown.target
|
2010-07-13 05:04:14 +07:00
|
|
|
|
|
|
|
[Service]
|
2010-09-10 21:53:53 +07:00
|
|
|
Environment=HOME=/root
|
2010-09-10 22:11:29 +07:00
|
|
|
WorkingDirectory=/root
|
2011-02-24 00:42:08 +07:00
|
|
|
ExecStartPre=-/bin/plymouth quit
|
2012-02-16 02:06:14 +07:00
|
|
|
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to enter default mode.'
|
2010-10-29 09:09:36 +07:00
|
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
2010-10-29 21:27:58 +07:00
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
2011-03-09 01:47:29 +07:00
|
|
|
m4_ifdef(`TARGET_MANDRIVA',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
2011-10-29 00:16:33 +07:00
|
|
|
m4_ifdef(`TARGET_MAGEIA',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
2011-04-20 02:37:51 +07:00
|
|
|
m4_ifdef(`TARGET_MEEGO',
|
|
|
|
`EnvironmentFile=/etc/sysconfig/init
|
2011-09-22 02:38:46 +07:00
|
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
2011-10-29 00:16:33 +07:00
|
|
|
`ExecStart=-/sbin/sulogin'))))
|
2012-04-04 11:22:21 +07:00
|
|
|
ExecStopPost=-@SYSTEMCTL@ --fail --no-block default
|
2010-07-13 05:04:14 +07:00
|
|
|
StandardInput=tty-force
|
2011-09-20 17:11:04 +07:00
|
|
|
StandardOutput=inherit
|
|
|
|
StandardError=inherit
|
2011-03-30 04:31:38 +07:00
|
|
|
KillMode=process
|
2010-07-13 05:04:14 +07:00
|
|
|
|
2010-08-06 01:29:11 +07:00
|
|
|
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
2010-07-13 05:04:14 +07:00
|
|
|
# terminates cleanly.
|
2010-08-06 01:29:11 +07:00
|
|
|
KillSignal=SIGHUP
|