2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2010-05-17 02:49:41 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 06:20:58 +08: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-17 02:49:41 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
2010-04-16 05:20:17 +08:00
|
|
|
[Unit]
|
2010-04-13 11:18:12 +08:00
|
|
|
Description=Emergency Shell
|
2012-06-27 07:07:04 +08:00
|
|
|
Documentation=man:sulogin(8)
|
2010-07-04 01:53:37 +08:00
|
|
|
DefaultDependencies=no
|
2010-10-29 10:09:36 +08:00
|
|
|
Conflicts=shutdown.target
|
2014-08-31 10:33:40 +08:00
|
|
|
Conflicts=rescue.service
|
2010-10-29 10:09:36 +08:00
|
|
|
Before=shutdown.target
|
2017-09-25 18:45:03 +08:00
|
|
|
Before=rescue.service
|
2010-04-13 11:18:12 +08:00
|
|
|
|
|
|
|
[Service]
|
2010-09-10 22:53:53 +08:00
|
|
|
Environment=HOME=/root
|
2016-01-18 00:25:42 +08:00
|
|
|
WorkingDirectory=-/root
|
2021-05-16 17:55:36 +08:00
|
|
|
ExecStartPre=-{{ROOTBINDIR}}/plymouth --wait quit
|
|
|
|
ExecStart=-{{ROOTLIBEXECDIR}}/systemd-sulogin-shell emergency
|
2012-04-24 20:28:00 +08:00
|
|
|
Type=idle
|
2010-07-13 05:49:20 +08:00
|
|
|
StandardInput=tty-force
|
2011-09-20 18:11:04 +08:00
|
|
|
StandardOutput=inherit
|
|
|
|
StandardError=inherit
|
2011-03-30 05:31:38 +08:00
|
|
|
KillMode=process
|
2012-02-09 10:18:04 +08:00
|
|
|
IgnoreSIGPIPE=no
|
2013-07-30 07:54:59 +08:00
|
|
|
SendSIGHUP=yes
|