chiark / gitweb /
units: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN
[elogind.git] / units / debug-shell.service.in
1 #  This file is part of systemd.
2 #
3 #  systemd is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU Lesser General Public License as published by
5 #  the Free Software Foundation; either version 2.1 of the License, or
6 #  (at your option) any later version.
7
8 [Unit]
9 Description=Early root shell on @DEBUGTTY@ FOR DEBUGGING ONLY
10 Documentation=man:sushell(8)
11 DefaultDependencies=no
12 IgnoreOnIsolate=yes
13 ConditionPathExists=@DEBUGTTY@
14
15 [Service]
16 Environment=TERM=linux
17 ExecStart=@SUSHELL@
18 Restart=always
19 RestartSec=0
20 StandardInput=tty
21 TTYPath=@DEBUGTTY@
22 TTYReset=yes
23 TTYVHangup=yes
24 KillMode=process
25 IgnoreSIGPIPE=no
26 # bash ignores SIGTERM
27 KillSignal=SIGHUP
28
29 # Unset locale for the console getty since the console has problems
30 # displaying some internationalized messages.
31 Environment=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=
32
33 [Install]
34 WantedBy=sysinit.target