]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/rescue.service.in
tmpfiles: support --image= similar to --root=
[thirdparty/systemd.git] / units / rescue.service.in
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
0667db89
LP
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
0667db89
LP
8# (at your option) any later version.
9
0667db89
LP
10[Unit]
11Description=Rescue Shell
744881d1 12Documentation=man:sulogin(8)
0667db89 13DefaultDependencies=no
de47ca9b 14Conflicts=shutdown.target
49e7f027 15After=sysinit.target plymouth-start.service
de47ca9b 16Before=shutdown.target
0667db89
LP
17
18[Service]
739848d4 19Environment=HOME=/root
cde3d687 20WorkingDirectory=-/root
e46736fb 21ExecStartPre=-@rootbindir@/plymouth --wait quit
29f32655 22ExecStart=-@rootlibexecdir@/systemd-sulogin-shell rescue
f2b68789 23Type=idle
0667db89 24StandardInput=tty-force
cbe82694
MS
25StandardOutput=inherit
26StandardError=inherit
cd25cce9 27KillMode=process
82659fd7
LP
28IgnoreSIGPIPE=no
29SendSIGHUP=yes