]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/debug-shell.service.in
Merge pull request #11933 from keszybz/coverity
[thirdparty/systemd.git] / units / debug-shell.service.in
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
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
10 [Unit]
11 Description=Early root shell on @DEBUGTTY@ FOR DEBUGGING ONLY
12 Documentation=man:sushell(8)
13 Documentation=man:systemd-debug-generator(8)
14 DefaultDependencies=no
15 IgnoreOnIsolate=yes
16 ConditionPathExists=@DEBUGTTY@
17
18 [Service]
19 Environment=TERM=linux
20 ExecStart=@SUSHELL@
21 Restart=always
22 RestartSec=0
23 StandardInput=tty
24 TTYPath=@DEBUGTTY@
25 TTYReset=yes
26 TTYVHangup=yes
27 KillMode=process
28 IgnoreSIGPIPE=no
29 # bash ignores SIGTERM
30 KillSignal=SIGHUP
31
32 # Unset locale for the console getty since the console has problems
33 # displaying some internationalized messages.
34 UnsetEnvironment=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
35
36 [Install]
37 WantedBy=sysinit.target