2010-05-16 22:49:41 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
2010-05-16 22:49:41 +04:00
# (at your option) any later version.
2010-04-16 01:20:17 +04:00
[Unit]
2010-04-13 07:18:12 +04:00
Description = Emergency Shell
2012-06-27 03:07:04 +04:00
Documentation = man:sulogin(8)
2010-07-03 21:53:37 +04:00
DefaultDependencies = no
2010-10-29 06:09:36 +04:00
Conflicts = shutdown.target
Before = shutdown.target
2010-04-13 07:18:12 +04:00
[Service]
2010-09-10 18:53:53 +04:00
Environment = HOME=/root
2010-09-10 19:11:29 +04:00
WorkingDirectory = /root
2011-02-23 20:42:08 +03:00
ExecStartPre = -/bin/plymouth quit
2012-02-15 23:06:14 +04:00
ExecStartPre = -/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to enter default mode.'
2010-08-25 05:15:12 +04:00
ExecStart = -/sbin/sulogin
2012-04-04 08:22:21 +04:00
ExecStopPost = @SYSTEMCTL@ --fail --no-block default
2012-04-24 16:28:00 +04:00
Type = idle
2010-07-13 01:49:20 +04:00
StandardInput = tty-force
2011-09-20 14:11:04 +04:00
StandardOutput = inherit
StandardError = inherit
2011-03-30 01:31:38 +04:00
KillMode = process
2012-02-09 06:18:04 +04:00
IgnoreSIGPIPE = no
2010-07-08 06:21:53 +04:00
2010-08-05 22:29:11 +04:00
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
2010-07-08 06:21:53 +04:00
# terminates cleanly.
2010-08-05 22:29:11 +04:00
KillSignal = SIGHUP