From 5cfe6dec84e7a75de96523fb3abbe49cdedbc900 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Jun 2018 20:37:12 -0300 Subject: Tail should go to background as well at kvmx-shell --- kvmx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kvmx b/kvmx index c417ad8..8de8d23 100755 --- a/kvmx +++ b/kvmx @@ -1795,7 +1795,7 @@ function kvmx_shell { if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then # Process command, nohup version, stdout and stderr are redirected to a file nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOG_DIR/nohup 2>&1 & - tail -F $LOG_DIR/nohup + tail -F $LOG_DIR/nohup & # Process command, disown version, stdout are preserved #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} & @@ -1808,7 +1808,7 @@ function kvmx_shell { if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then # Process command, nohup version nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOG_DIR/nohup 2>&1 & - tail -F $LOG_DIR/nohup + tail -F $LOG_DIR/nohup & # Process command, disown version #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} & -- cgit v1.2.3