chiark / gitweb /
shared/machine-pool: remove unnecessary check
[elogind.git] / units / debug-shell.service.in
index 2aa98d3..59f6e49 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