chiark / gitweb /
journald: add CAP_MAC_OVERRIDE in journald for SMACK issue
[elogind.git] / units / debug-shell.service.in
index 2aa98d3cc55af80cab6780164486d2d9d8813858..59f6e494b375d58e42fc73314867b475550ff6ed 100644 (file)
@@ -6,18 +6,19 @@
 #  (at your option) any later version.
 
 [Unit]
-Description=Early root shell on tty9 FOR DEBUGGING ONLY
+Description=Early root shell on @DEBUGTTY@ FOR DEBUGGING ONLY
 Documentation=man:sushell(8)
 DefaultDependencies=no
 IgnoreOnIsolate=yes
+ConditionPathExists=@DEBUGTTY@
 
 [Service]
 Environment=TERM=linux
-ExecStart=@sushell@
+ExecStart=@SUSHELL@
 Restart=always
 RestartSec=0
 StandardInput=tty
-TTYPath=/dev/tty9
+TTYPath=@DEBUGTTY@
 TTYReset=yes
 TTYVHangup=yes
 KillMode=process