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