]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Try nohup approach at kvmx-shell
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Jun 2018 23:27:38 +0000 (20:27 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Jun 2018 23:27:38 +0000 (20:27 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 10a0d3efef2a3ca5e22b4febf4d4ffb5a460a490..b91b6bdd0c591dc8e134785c7375f1f6bf037506 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -1794,12 +1794,12 @@ function kvmx_shell {
         else
           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} >> $LOGDIR/nohup 2>&1 &
-            #tail -F $LOGDIR/nohup
+            nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
+            tail -F $LOGDIR/nohup
 
             # Process command, disown version, stdout are preserved
-            $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
-            disown -h
+            #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
+            #disown -h
           else
             $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
           fi
@@ -1807,12 +1807,12 @@ function kvmx_shell {
       else
         if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then
           # Process command, nohup version
-          #nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
-          #tail -F $LOGDIR/nohup
+          nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
+          tail -F $LOGDIR/nohup
 
           # Process command, disown version
-          $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
-          disown -h
+          #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
+          #disown -h
         else
           $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
         fi