2010-05-16 18:49:41 +00: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.
|
|
|
|
|
2010-05-16 20:45:11 +00:00
|
|
|
# See systemd.special(7) for details
|
|
|
|
|
2010-04-15 21:20:17 +00:00
|
|
|
[Unit]
|
2010-04-13 03:18:12 +00:00
|
|
|
Description=Emergency Shell
|
2010-07-03 17:53:37 +00:00
|
|
|
DefaultDependencies=no
|
2010-10-29 02:09:36 +00:00
|
|
|
Conflicts=shutdown.target
|
|
|
|
Before=shutdown.target
|
2010-04-13 03:18:12 +00:00
|
|
|
|
|
|
|
[Service]
|
2010-09-10 14:53:53 +00:00
|
|
|
Environment=HOME=/root
|
2010-10-26 00:58:59 +00:00
|
|
|
Environment=TERM=vt100-nav
|
2010-09-10 15:11:29 +00:00
|
|
|
WorkingDirectory=/root
|
2010-07-12 21:49:20 +00:00
|
|
|
ExecStartPre=-/bin/plymouth --hide-splash
|
2010-10-06 00:43:06 +00:00
|
|
|
ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.'
|
2010-08-25 01:15:12 +00:00
|
|
|
ExecStart=-/sbin/sulogin
|
2010-10-06 00:43:06 +00:00
|
|
|
ExecStopPost=/bin/systemctl default
|
2010-07-12 21:49:20 +00:00
|
|
|
StandardInput=tty-force
|
2010-06-02 17:15:42 +00:00
|
|
|
KillMode=process-group
|
2010-07-08 02:21:53 +00:00
|
|
|
|
2010-08-05 18:29:11 +00:00
|
|
|
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
2010-07-08 02:21:53 +00:00
|
|
|
# terminates cleanly.
|
2010-08-05 18:29:11 +00:00
|
|
|
KillSignal=SIGHUP
|