]>
Commit | Line | Data |
---|---|---|
a032b68d | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
52ad194e | 2 | # |
663996b3 MS |
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] | |
8b3d4ff0 | 11 | Description=Early root shell on {{DEBUGTTY}} FOR DEBUGGING ONLY |
1d42b86d | 12 | Documentation=man:systemd-debug-generator(8) |
663996b3 MS |
13 | DefaultDependencies=no |
14 | IgnoreOnIsolate=yes | |
8b3d4ff0 | 15 | ConditionPathExists={{DEBUGTTY}} |
663996b3 MS |
16 | |
17 | [Service] | |
18 | Environment=TERM=linux | |
8b3d4ff0 | 19 | ExecStart={{SUSHELL}} |
663996b3 MS |
20 | Restart=always |
21 | RestartSec=0 | |
22 | StandardInput=tty | |
8b3d4ff0 | 23 | TTYPath={{DEBUGTTY}} |
663996b3 MS |
24 | TTYReset=yes |
25 | TTYVHangup=yes | |
26 | KillMode=process | |
27 | IgnoreSIGPIPE=no | |
28 | # bash ignores SIGTERM | |
29 | KillSignal=SIGHUP | |
30 | ||
31 | # Unset locale for the console getty since the console has problems | |
32 | # displaying some internationalized messages. | |
f5e65279 | 33 | 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 |
663996b3 MS |
34 | |
35 | [Install] | |
36 | WantedBy=sysinit.target |