From 1fc01d99e4d0c57a34d37e7713e53923a6719ece Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Dec 2017 19:52:26 -0200 Subject: Fix serial console log file name --- kvmx | 7 +------ share/screen/screenrc | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/kvmx b/kvmx index 1a06c4a..9203e64 100755 --- 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" & diff --git a/share/screen/screenrc b/share/screen/screenrc index 0a76b80..fcc17fd 100644 --- a/share/screen/screenrc +++ b/share/screen/screenrc @@ -3,7 +3,7 @@ # use C-\ as the escape character escape \034\034 -logfile ./servicelog +#logfile ./servicelog logfile flush 1 # unset important key bindings -- cgit v1.2.3