]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/debug-shell.service.in
Merge pull request #11922 from poettering/hostname-protect-fix
[thirdparty/systemd.git] / units / debug-shell.service.in
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
454591be
LP
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
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
8# (at your option) any later version.
9
ed061a8d 10[Unit]
5ec6b15b 11Description=Early root shell on @DEBUGTTY@ FOR DEBUGGING ONLY
744881d1 12Documentation=man:sushell(8)
9b873d1c 13Documentation=man:systemd-debug-generator(8)
ed061a8d
MS
14DefaultDependencies=no
15IgnoreOnIsolate=yes
0138a2dc 16ConditionPathExists=@DEBUGTTY@
ed061a8d
MS
17
18[Service]
19Environment=TERM=linux
5ec6b15b 20ExecStart=@SUSHELL@
ed061a8d
MS
21Restart=always
22RestartSec=0
23StandardInput=tty
5ec6b15b 24TTYPath=@DEBUGTTY@
ed061a8d
MS
25TTYReset=yes
26TTYVHangup=yes
27KillMode=process
28IgnoreSIGPIPE=no
29# bash ignores SIGTERM
30KillSignal=SIGHUP
31
32# Unset locale for the console getty since the console has problems
33# displaying some internationalized messages.
82f93439 34UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
ed061a8d
MS
35
36[Install]
37WantedBy=sysinit.target