]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix serial console log file name
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Dec 2017 21:52:26 +0000 (19:52 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Dec 2017 21:52:26 +0000 (19:52 -0200)
kvmx
share/screen/screenrc

diff --git a/kvmx b/kvmx
index 1a06c4aff04d922b94eaad6eacf9d828c7868a91..9203e642cde6e5009c6ea009fca648a5dc9ca02e 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -411,12 +411,7 @@ function kvmx_up {
   echo $XDMCP_PORT    > $XDMCPPORTFILE
 
   # Thanks kvm-manager code for that portion
-  local screen_log_args=-L
-  if dpkg --compare-versions "$screen_version" ge 4.05; then
-    screen_log_args="-L $DATADIR/servicelog"
-  fi
-
-  /usr/bin/screen -D -m $screen_log_args \
+  /usr/bin/screen -D -m -L $LOGDIR/servicelog \
                   -c $DIRNAME/share/screen/screenrc \
                   -S "kvmx-$VM" -t "kvmx-$VM" socat STDIO,raw,echo=0 "UNIX:${CONSOLEFILE},retry=30" &
 
index 0a76b8064e4a021e910503856c6fbea6e61d4d62..fcc17fd877d2778a4dd8165878802f20c18dcdee 100644 (file)
@@ -3,7 +3,7 @@
 # use C-\ as the escape character
 escape \034\034
 
-logfile ./servicelog
+#logfile ./servicelog
 logfile flush 1
 
 # unset important key bindings